summaryrefslogtreecommitdiffstats
path: root/editor/surface_upgrade_tool.h
Commit message (Collapse)AuthorAgeFilesLines
* Rework the surface upgrade tool to inform users without blockingYuri Sizov2023-11-221-2/+6
| | | | | | | | | | | | | This removes the immediate confirmation dialog and insteads prints the message to the editor log (and it also appears as a toast). The immediate dialog is a devil's plaything, and it cannot be used in this scenario (if it can be used anywhere at all). The condition that triggers the SUT can happen during any attempt by the rendering server to read a mesh. This means it will conflict with a number of editor processes, like loading, importing, preview generation, export, CLI mode, etc. So while this is less on the nose as far as informing users goes, it's also our best option to use the log and the toaster.
* Prevent the surface upgrade tool from running during exportYuri Sizov2023-11-201-1/+12
| | | | | Also add an explicit way to trigger the tool manually at user's will.
* Overhaul the SurfaceUpgradeToolclayjohn2023-11-011-4/+22
| | | | | | | | This defers the update to a fresh restart of the editor (to ensure we aren't mid way through loading scenes anymore. It also ensures that the popup can't be used by multiple threads at once Co-authored-by: Yuri Sizov <yuris@humnom.net>
* Implementation of tool to automatically upgrade and re-save meshesclayjohn2023-10-231-0/+49