From 8764bdcda0627642c91e56bb35e224fa17da11e3 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Sun, 7 Oct 2007 05:19:34 +0000 Subject: [PATCH] Took out a try-catch block that was designed to prevent us from knowing about bugs!!! --- pandatool/src/maxegg/maxEggExpOptions.cxx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/pandatool/src/maxegg/maxEggExpOptions.cxx b/pandatool/src/maxegg/maxEggExpOptions.cxx index 819f28099d..05a3b5f5d6 100755 --- a/pandatool/src/maxegg/maxEggExpOptions.cxx +++ b/pandatool/src/maxegg/maxEggExpOptions.cxx @@ -707,7 +707,7 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog) case AT_model: default: apcParameters[iParameterCount++]="model"; break; } - + //Start Frame //If the export options need a start frame and we have one //then use it @@ -716,7 +716,7 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog) apcParameters[iParameterCount++] = "-sf"; apcParameters[iParameterCount++] = pszSF; } - + //Start Frame //If the export options need an end frame and we have one //then use it @@ -725,11 +725,11 @@ bool MaxEggExpOptions::DoExport(IObjParam *ip, bool autoOverwrite, bool saveLog) apcParameters[iParameterCount++] = "-ef"; apcParameters[iParameterCount++] = pszEF; } - + // Doublesided: This option may be diabled in the converter // but this is here for when it is enabled if (dblSided) apcParameters[iParameterCount++] = "-bface"; - + // Final ARGV = Output file // Pass in the output filename // 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 // would throw an exception. That no longer happens, but this is still // here for good measure - try { - 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"); + delete pmteConverter; + Logger::FunctionExit(); //Free the error logger if ( Logger::globalLoggingInstance ) delete Logger::globalLoggingInstance; - + return successful; }