mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -532,7 +532,7 @@ bool Material::onAdd()
|
|||
matSet->addObject( (SimObject*)this );
|
||||
|
||||
// save the current script path for texture lookup later
|
||||
const String scriptFile = Con::getVariable("$Con::File"); // current script file - local materials.cs
|
||||
const String scriptFile = Con::getVariable("$Con::File"); // current script file - local materials.tscript
|
||||
|
||||
String::SizeType slash = scriptFile.find( '/', scriptFile.length(), String::Right );
|
||||
if ( slash != String::NPos )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue