Expands/Cleans up a lot of the asset functionality, including management, file association, and creation/importing

This commit is contained in:
Areloch 2019-05-04 11:49:42 -05:00
parent a366f65047
commit 4422082035
73 changed files with 4468 additions and 1876 deletions

View file

@ -137,6 +137,8 @@ function MaterialEditorGui::open(%this)
if( MaterialEditorGui.currentMode $= "Mesh" )
MaterialEditorGui.prepareActiveObject( true );
else if( MaterialEditorGui.currentMode $= "asset" )
MaterialEditorGui.prepareActiveMaterial( MaterialEditorGui.currentMaterial, true );
else
MaterialEditorGui.prepareActiveMaterial( "", true );
@ -288,7 +290,9 @@ function MaterialEditorGui::setMode( %this )
}
else
{
MaterialEditorGui.currentMode = "Material";
if(MaterialEditorGui.currentMode !$= "asset")
MaterialEditorGui.currentMode = "Material";
MatEdMaterialMode.setVisible(1);
EWorldEditor.clearSelection();
}