mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 22:10:36 +00:00
Merge branch 'ModernEditorLayoutWIP' of https://github.com/Areloch/Torque3D into development
This commit is contained in:
commit
3697737498
148 changed files with 3463 additions and 547 deletions
|
|
@ -2278,6 +2278,32 @@ function MaterialEditorGui::refreshMaterial(%this)
|
|||
MaterialEditorGui.setMaterialNotDirty();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// Looking up material instances/getting mat info
|
||||
function MaterialEditorGui::lookupMaterialInstances( %this )
|
||||
{
|
||||
if( MaterialEditorGui.currentMaterial.getName() $= "" )
|
||||
{
|
||||
MessageBoxOK("Cannot perform operation", "Unable to look up a material with a blank name" );
|
||||
return;
|
||||
}
|
||||
|
||||
MaterialInstanceViewTree.clear();
|
||||
MaterialInstanceViewTree.setFilterChildren(false);
|
||||
MaterialInstanceViewTree.setItemFilterException(1, true);
|
||||
|
||||
MaterialEditorGui.currentMaterial.getMaterialInstances(MaterialInstanceViewTree);
|
||||
|
||||
if(MaterialInstanceFilter.Text !$= "\c2Filter...")
|
||||
{
|
||||
MaterialInstanceViewTree.setFilterText(MaterialInstanceFilter.Text);
|
||||
}
|
||||
|
||||
MaterialInstanceViewTree.buildVisibleTree(true);
|
||||
|
||||
Canvas.pushDialog(MaterialInstanceViewCtrl);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// Switching and Changing Materials
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue