Parametrize script extension, default to 'tscript'

This commit is contained in:
Lukas Aldershaab 2020-12-12 16:54:16 +01:00
parent b8b62292bd
commit 099dd4f1f3
542 changed files with 774 additions and 783 deletions

View file

@ -991,7 +991,7 @@
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = " Force update materials.cs";
text = " Force update materials.tscript";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
@ -1005,7 +1005,7 @@
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Forces update of materials.cs (even if Materials already exist)";
ToolTip = "Forces update of materials.tscript (even if Materials already exist)";
hovertime = "1000";
internalName = "forceUpdateMaterials";
canSaveDynamicFields = "0";
@ -1255,7 +1255,7 @@ function ColladaImportDlg::showDialog(%this, %shapePath, %cmd)
// Check for an existing TSShapeConstructor object. Need to exec the script
// manually as the DAE resource may not have been loaded yet
%csPath = filePath(%this.path) @ "/" @ fileBase(%this.path) @ ".cs";
%csPath = filePath(%this.path) @ "/" @ fileBase(%this.path) @ ".tscript";
if (isFile(%csPath))
exec(%csPath);