mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #665 from andr3wmac/multiformat
Support for large lists of shape formats.
This commit is contained in:
commit
cf5d48e6ef
10 changed files with 154 additions and 20 deletions
|
|
@ -324,13 +324,13 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
|
||||
if ( %this.tab $= "Meshes" )
|
||||
{
|
||||
%fullPath = findFirstFileMultiExpr( "*.dts" TAB "*.dae" TAB "*.kmz" TAB "*.dif" );
|
||||
%fullPath = findFirstFileMultiExpr( getFormatExtensions() );
|
||||
|
||||
while ( %fullPath !$= "" )
|
||||
{
|
||||
if (strstr(%fullPath, "cached.dts") != -1)
|
||||
{
|
||||
%fullPath = findNextFileMultiExpr( "*.dts" TAB "*.dae" TAB "*.kmz" TAB "*.dif" );
|
||||
%fullPath = findNextFileMultiExpr( getFormatExtensions() );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
%splitPath = strreplace( %fullPath, "/", " " );
|
||||
if( getWord(%splitPath, 0) $= "tools" )
|
||||
{
|
||||
%fullPath = findNextFileMultiExpr( "*.dts" TAB "*.dae" TAB "*.kmz" TAB "*.dif" );
|
||||
%fullPath = findNextFileMultiExpr( getFormatExtensions() );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -396,7 +396,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
}
|
||||
}
|
||||
|
||||
%fullPath = findNextFileMultiExpr( "*.dts" TAB "*.dae" TAB "*.kmz" TAB "*.dif" );
|
||||
%fullPath = findNextFileMultiExpr( getFormatExtensions() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue