mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 22:35:37 +00:00
Parametrize script extension, default to 'tscript'
This commit is contained in:
parent
b8b62292bd
commit
099dd4f1f3
542 changed files with 774 additions and 783 deletions
|
|
@ -1573,7 +1573,7 @@ function MaterialSelector::updateMaterialTags( %this, %material, %tag, %tagValue
|
|||
// their auto-generated or new material
|
||||
if( %material.getFilename() !$= "" &&
|
||||
%material.getFilename() !$= "tools/gui/MaterialSelector.ed.gui" &&
|
||||
%material.getFilename() !$= "tools/materialEditor/scripts/materialEditor.ed.cs" )
|
||||
%material.getFilename() !$= "tools/materialEditor/scripts/materialEditor.ed.tscript" )
|
||||
{
|
||||
MaterialSelectorPerMan.setDirty( %material );
|
||||
MaterialSelectorPerMan.saveDirty();
|
||||
|
|
@ -1761,7 +1761,7 @@ function MaterialSelector::deleteMaterial( %this, %materialName, %secondFilter,
|
|||
|
||||
if( %materialName.getFilename() !$= "" &&
|
||||
%materialName.getFilename() !$= "tools/gui/MaterialSelector.ed.gui" &&
|
||||
%materialName.getFilename() !$= "tools/materialEditor/scripts/materialEditor.ed.cs" )
|
||||
%materialName.getFilename() !$= "tools/materialEditor/scripts/materialEditor.ed.tscript" )
|
||||
{
|
||||
MaterialSelectorPerMan.removeObjectFromFile(%materialName);
|
||||
MaterialSelectorPerMan.saveDirty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue