Removed redundant 'load last edited level' startup mode to editor.

Fixed recent levels open command behavior
Includes rextimmy's vertex WS normal logic in HLS shadergen
This commit is contained in:
Areloch 2019-11-20 01:39:12 -06:00
parent 62fabf6894
commit c74b669f5e
6 changed files with 36 additions and 32 deletions

View file

@ -435,6 +435,9 @@ function EditorOpenMission(%levelAsset)
popInstantGroup();
}
//If we've opened a valid level, clear the saveAs tag as it's not really applicable now
EditorGui.saveAs = false;
}
function EditorOpenSceneAppend(%levelAsset)
@ -605,8 +608,6 @@ function EditorUnmount()
//------------------------------------------------------------------------
function updateRecentLevelsListing()
{
RecentLevelsPopupMenu.clearItems();
%recentLevels = EditorSettings.value("WorldEditor/recentLevelsList");
%recentCount = getTokenCount(%recentLevels, ",");
@ -614,8 +615,11 @@ function updateRecentLevelsListing()
{
%recentEntry = getToken(%recentLevels, ",", %i);
RecentLevelsPopupMenu.insertItem(%i, %recentEntry, "", "schedule(1,0, \"EditorOpenMission\", " @ %recentEntry @ ");");
%command = "schedule(32,0, \"EditorOpenMission\", \"" @ %recentEntry @ "\");";
RecentLevelsPopupMenu.item[%i] = %recentEntry TAB "" TAB %command;
}
RecentLevelsPopupMenu.reloadItems();
}
//////////////////////////////////////////////////////////////////////////