mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 11:50:57 +00:00
Added proper default setting for alwaysPromptModuleTarget editor setting
Swapped the scan checking for editor scripts with dso being preferred first
This commit is contained in:
parent
2f40b843d4
commit
f9f022a1b9
2 changed files with 8 additions and 4 deletions
|
|
@ -184,6 +184,10 @@ function AssetBrowserPlugin::initSettings( %this )
|
|||
|
||||
EditorSettings.setDefaultValue( "AssetImporDefaultConfig", "DefaultConfig" );
|
||||
EditorSettings.setDefaultValue( "AutoImport", 1 );
|
||||
|
||||
EditorSettings.beginGroup( "New" );
|
||||
EditorSettings.setDefaultValue( "alwaysPromptModuleTarget", 0 );
|
||||
EditorSettings.endGroup();
|
||||
|
||||
EditorSettings.beginGroup( "Browser" );
|
||||
|
||||
|
|
|
|||
|
|
@ -100,12 +100,12 @@ function onStart()
|
|||
$editors[%i] = getWord( $Tools::loadFirst, %i );
|
||||
}
|
||||
|
||||
%pattern = $Tools::resourcePath @ "/*/main." @ $TorqueScriptFileExtension;
|
||||
%pattern = $Tools::resourcePath @ "/*/main." @ $TorqueScriptFileExtension @ ".dso";
|
||||
%folder = findFirstFile( %pattern );
|
||||
if ( %folder $= "")
|
||||
{
|
||||
// if we have absolutely no matches for main.tscript, we look for main.tscript.dso
|
||||
%pattern = $Tools::resourcePath @ "/*/main." @ $TorqueScriptFileExtension @ ".dso";
|
||||
%pattern = $Tools::resourcePath @ "/*/main." @ $TorqueScriptFileExtension;
|
||||
%folder = findFirstFile( %pattern );
|
||||
}
|
||||
while ( %folder !$= "" )
|
||||
|
|
@ -128,12 +128,12 @@ function onStart()
|
|||
}
|
||||
|
||||
//Next, scrape through modules and scan for tools subfolders there
|
||||
%pattern = "data/*/editor." @ $TorqueScriptFileExtension;
|
||||
%pattern = "data/*/editor." @ $TorqueScriptFileExtension @ ".dso";
|
||||
%folder = findFirstFile( %pattern );
|
||||
if ( %folder $= "")
|
||||
{
|
||||
// if we have absolutely no matches for main.tscript, we look for main.tscript.dso
|
||||
%pattern = "data/*/editor." @ $TorqueScriptFileExtension @ ".dso";
|
||||
%pattern = "data/*/editor." @ $TorqueScriptFileExtension;
|
||||
%folder = findFirstFile( %pattern );
|
||||
}
|
||||
while ( %folder !$= "" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue