*** empty log message ***

This commit is contained in:
Josh Yelon 2005-08-01 20:39:06 +00:00
parent 90856d52c0
commit 02c9a34219
2 changed files with 2 additions and 3 deletions

View File

@ -193,8 +193,8 @@ int MaxEggImporter::DoImport(const TCHAR *name,ImpInterface *ii,Interface *i, BO
std::ostringstream log;
Notify::ptr()->set_ostream_ptr(&log, false);
bool ok = MaxLoadEggFile(name, _merge ? true:false, _importmodel ? true:false, _importanim ? true:false);
const char *txt = log.str().c_str();
if (txt[0]) MessageBox(NULL, txt, "Panda3D Importer", MB_OK);
string txt = log.str();
if (txt != "") MessageBox(NULL, txt.c_str(), "Panda3D Importer", MB_OK);
else {
if (!ok) MessageBox(NULL, "Import Failed, unknown reason\n", "Panda3D Importer", MB_OK);
}

View File

@ -68,7 +68,6 @@ public:
MaxEggJoint *MakeJoint(EggGroup *joint, EggGroup *context);
MaxEggTex *GetTex(const string &fn);
void CreateSkinModifier(MaxEggMesh *M);
Point3 ConvertCoordSys(LVector3d vec);
typedef phash_map<EggVertexPool *, MaxEggMesh *> MeshTable;
typedef second_of_pair_iterator<MeshTable::const_iterator> MeshIterator;