mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge branch 'AssimpWIP' of https://github.com/Areloch/Torque3D into development
This commit is contained in:
commit
951594259f
909 changed files with 367086 additions and 2721 deletions
|
|
@ -1751,3 +1751,21 @@ function convertColladaModels(%pattern)
|
|||
|
||||
$collada::forceLoadDAE = false;
|
||||
}
|
||||
|
||||
function showImportDialog(%shapePath, %cmd)
|
||||
{
|
||||
%this.path = %shapePath;
|
||||
%this.cmd = %cmd;
|
||||
|
||||
if ( fileExt(%shapePath) $= ".dts" || fileExt(%shapePath) $= ".dsq"
|
||||
|| fileExt(%shapePath) $= ".dae" || fileExt(%shapePath) $= ".kmz" )
|
||||
{
|
||||
// Regular Load
|
||||
ColladaImportDlg.showDialog(%shapePath, %cmd);
|
||||
} else if ( isSupportedFormat(stripChars(fileExt(%shapePath), ".")) )
|
||||
{
|
||||
// Assimp Load
|
||||
if ( isObject(AssimpImportDlg) )
|
||||
AssimpImportDlg.showDialog(%shapePath, %cmd);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue