mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 06:45:36 +00:00
Implements shape preview caching for shape assets
Also standardizes the loading gui overlay so it can be used to inform that the asset preview generation is happening
This commit is contained in:
parent
762a84550f
commit
85a9a9b608
7 changed files with 112 additions and 23 deletions
|
|
@ -261,12 +261,11 @@ function fastLoadWorldEdit(%val)
|
|||
{
|
||||
if(!$Tools::loaded)
|
||||
{
|
||||
canvas.pushDialog( EditorLoadingGui );
|
||||
canvas.repaint();
|
||||
displayEditorLoadingGui();
|
||||
|
||||
onStart();
|
||||
|
||||
canvas.popDialog(EditorLoadingGui);
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
%timerId = startPrecisionTimer();
|
||||
|
|
@ -304,8 +303,7 @@ function fastLoadWorldEdit(%val)
|
|||
}
|
||||
else
|
||||
{
|
||||
canvas.pushDialog( EditorLoadingGui );
|
||||
canvas.repaint();
|
||||
displayEditorLoadingGui();
|
||||
|
||||
Editor.open();
|
||||
|
||||
|
|
@ -317,7 +315,7 @@ function fastLoadWorldEdit(%val)
|
|||
if (theLevelInfo.type $= "DemoScene")
|
||||
commandToServer('dropCameraAtPlayer', true);
|
||||
|
||||
canvas.popDialog(EditorLoadingGui);
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
popInstantGroup();
|
||||
|
|
@ -334,12 +332,11 @@ function fastLoadGUIEdit(%val)
|
|||
{
|
||||
if(!$Tools::loaded)
|
||||
{
|
||||
canvas.pushDialog( EditorLoadingGui );
|
||||
canvas.repaint();
|
||||
displayEditorLoadingGui();
|
||||
|
||||
onStart();
|
||||
|
||||
canvas.popDialog(EditorLoadingGui);
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
toggleGuiEditor(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue