29 May 2012 12:28
SF.net SVN: cel:[4901] cel/trunk/plugins/propclass/dynworld
Revision: 4901
http://cel.svn.sourceforge.net/cel/?rev=4901&view=rev
Author: jorrit
Date: 2012-05-29 10:28:47 +0000 (Tue, 29 May 2012)
Log Message:
-----------
UpdateObjects(factory) will now also update the light factory with a new
(editor specific) mesh.
Modified Paths:
--------------
cel/trunk/plugins/propclass/dynworld/dynworld.cpp
cel/trunk/plugins/propclass/dynworld/dynworld.h
Modified: cel/trunk/plugins/propclass/dynworld/dynworld.cpp
===================================================================
--- cel/trunk/plugins/propclass/dynworld/dynworld.cpp 2012-05-29 04:16:15 UTC (rev 4900)
+++ cel/trunk/plugins/propclass/dynworld/dynworld.cpp 2012-05-29 10:28:47 UTC (rev 4901)
<at> <at> -860,6 +860,18 <at> <at>
meshFactories.DeleteAll ();
}
+void MeshCache::RemoveFactory (iEngine* engine, const char* name)
+{
+ MeshCacheFactory* mcf = meshFactories.Get (name, 0);
+ if (mcf)
+ {
+ while (mcf->meshes.GetSize () > 0)
+ {
+ engine->RemoveObject (mcf->meshes.Pop ());
(Continue reading)
RSS Feed