From: <rly...@us...> - 2011-05-20 09:08:36
|
Revision: 7301 http://planeshift.svn.sourceforge.net/planeshift/?rev=7301&view=rev Author: rlydontknow Date: 2011-05-20 09:08:30 +0000 (Fri, 20 May 2011) Log Message: ----------- ensure improperly cloned factories still finish loading and added a debug message Modified Paths: -------------- trunk/src/plugins/common/bgloader/loader_objects.cpp Modified: trunk/src/plugins/common/bgloader/loader_objects.cpp =================================================================== --- trunk/src/plugins/common/bgloader/loader_objects.cpp 2011-05-20 08:59:58 UTC (rev 7300) +++ trunk/src/plugins/common/bgloader/loader_objects.cpp 2011-05-20 09:08:30 UTC (rev 7301) @@ -166,8 +166,7 @@ bool BgLoader::MeshFact::LoadObject(bool wait) { - bool ready; - + bool ready = false; bool cached = filename.IsEmpty(); // we can't get the loader to create a new copy @@ -180,6 +179,13 @@ { ready = parentFactory->Load(wait); } + else + { + csString msg; + msg.Format("trying to load cloned mesh factory %s without a parent factory",GetName()); + CS_ASSERT_MSG(msg.GetData(),false); + ready = true; + } } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |