Merge pull request #665 from andr3wmac/multiformat

Support for large lists of shape formats.
This commit is contained in:
Daniel Buckmaster 2014-07-08 14:14:54 +02:00
commit cf5d48e6ef
10 changed files with 154 additions and 20 deletions

View file

@ -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() );
}
}