mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fixes import dialog display after showing the shape changed prompt in the ShapeEditor.
This commit is contained in:
parent
6660f253b5
commit
2638559f94
2 changed files with 3 additions and 3 deletions
|
|
@ -261,13 +261,13 @@ function ShapeEdSelectWindow::onSelect( %this, %path )
|
||||||
// Prompt user to save the old shape if it is dirty
|
// Prompt user to save the old shape if it is dirty
|
||||||
if ( ShapeEditor.isDirty() )
|
if ( ShapeEditor.isDirty() )
|
||||||
{
|
{
|
||||||
%cmd = "ColladaImportDlg.showDialog( \"" @ %path @ "\", \"ShapeEditor.selectShape( \\\"" @ %path @ "\\\", ";
|
%cmd = "showImportDialog( \"" @ %path @ "\", \"ShapeEditor.selectShape( \\\"" @ %path @ "\\\", ";
|
||||||
MessageBoxYesNoCancel( "Shape Modified", "Would you like to save your changes?", %cmd @ "true );\" );", %cmd @ "false );\" );" );
|
MessageBoxYesNoCancel( "Shape Modified", "Would you like to save your changes?", %cmd @ "true );\" );", %cmd @ "false );\" );" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
%cmd = "ShapeEditor.selectShape( \"" @ %path @ "\", false );";
|
%cmd = "ShapeEditor.selectShape( \"" @ %path @ "\", false );";
|
||||||
ColladaImportDlg.showDialog( %path, %cmd );
|
showImportDialog( %path, %cmd );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ function ShapeEdSelectWindow::onSelect( %this, %path )
|
||||||
// Prompt user to save the old shape if it is dirty
|
// Prompt user to save the old shape if it is dirty
|
||||||
if ( ShapeEditor.isDirty() )
|
if ( ShapeEditor.isDirty() )
|
||||||
{
|
{
|
||||||
%cmd = "ColladaImportDlg.showDialog( \"" @ %path @ "\", \"ShapeEditor.selectShape( \\\"" @ %path @ "\\\", ";
|
%cmd = "showImportDialog( \"" @ %path @ "\", \"ShapeEditor.selectShape( \\\"" @ %path @ "\\\", ";
|
||||||
MessageBoxYesNoCancel( "Shape Modified", "Would you like to save your changes?", %cmd @ "true );\" );", %cmd @ "false );\" );" );
|
MessageBoxYesNoCancel( "Shape Modified", "Would you like to save your changes?", %cmd @ "true );\" );", %cmd @ "false );\" );" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue