mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +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
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue