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:
Areloch 2021-01-27 01:54:26 -06:00
parent 762a84550f
commit 85a9a9b608
7 changed files with 112 additions and 23 deletions

View file

@ -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);