mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Took out a try-catch block that was designed to prevent us from knowing about bugs!!!
This commit is contained in:
parent
d740e018b5
commit
8764bdcda0
@ -707,7 +707,7 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog)
|
|||||||
case AT_model:
|
case AT_model:
|
||||||
default: apcParameters[iParameterCount++]="model"; break;
|
default: apcParameters[iParameterCount++]="model"; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Start Frame
|
//Start Frame
|
||||||
//If the export options need a start frame and we have one
|
//If the export options need a start frame and we have one
|
||||||
//then use it
|
//then use it
|
||||||
@ -716,7 +716,7 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog)
|
|||||||
apcParameters[iParameterCount++] = "-sf";
|
apcParameters[iParameterCount++] = "-sf";
|
||||||
apcParameters[iParameterCount++] = pszSF;
|
apcParameters[iParameterCount++] = pszSF;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Start Frame
|
//Start Frame
|
||||||
//If the export options need an end frame and we have one
|
//If the export options need an end frame and we have one
|
||||||
//then use it
|
//then use it
|
||||||
@ -725,11 +725,11 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog)
|
|||||||
apcParameters[iParameterCount++] = "-ef";
|
apcParameters[iParameterCount++] = "-ef";
|
||||||
apcParameters[iParameterCount++] = pszEF;
|
apcParameters[iParameterCount++] = pszEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Doublesided: This option may be diabled in the converter
|
// Doublesided: This option may be diabled in the converter
|
||||||
// but this is here for when it is enabled
|
// but this is here for when it is enabled
|
||||||
if (dblSided) apcParameters[iParameterCount++] = "-bface";
|
if (dblSided) apcParameters[iParameterCount++] = "-bface";
|
||||||
|
|
||||||
// Final ARGV = Output file
|
// Final ARGV = Output file
|
||||||
// Pass in the output filename
|
// Pass in the output filename
|
||||||
// Output file has to be passed in with the -o parameter in order to be able
|
// Output file has to be passed in with the -o parameter in order to be able
|
||||||
@ -749,19 +749,12 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog)
|
|||||||
// This was put in try block because originally deleting pmteConverter
|
// This was put in try block because originally deleting pmteConverter
|
||||||
// would throw an exception. That no longer happens, but this is still
|
// would throw an exception. That no longer happens, but this is still
|
||||||
// here for good measure
|
// here for good measure
|
||||||
try {
|
delete pmteConverter;
|
||||||
Logger::Log(MTEC, Logger::SAT_MEDIUM_LEVEL, "before deleting pmteconverter");
|
|
||||||
delete pmteConverter;
|
|
||||||
} catch (...) {
|
|
||||||
Logger::Log(MTEC, Logger::SAT_MEDIUM_LEVEL, "before error message window");
|
|
||||||
MessageBox(ip->GetMAXHWnd(), "I just got an unknown exception.",
|
|
||||||
"Panda3D Converter", MB_OK);
|
|
||||||
}
|
|
||||||
Logger::Log(MTEC, Logger::SAT_MEDIUM_LEVEL, "before logger function exit");
|
|
||||||
Logger::FunctionExit();
|
Logger::FunctionExit();
|
||||||
//Free the error logger
|
//Free the error logger
|
||||||
if ( Logger::globalLoggingInstance )
|
if ( Logger::globalLoggingInstance )
|
||||||
delete Logger::globalLoggingInstance;
|
delete Logger::globalLoggingInstance;
|
||||||
|
|
||||||
return successful;
|
return successful;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user