[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16278] trunk/blender/source/gameengine/ Ketsji/KX_Scene.cpp: BGE Bugfix, lights were not being removed when their gameobject was removed causing odd shadows to hang about the scene .

Campbell Barton ideasman42 at gmail.com
Thu Aug 28 09:03:23 CEST 2008


Revision: 16278
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16278
Author:   campbellbarton
Date:     2008-08-28 09:03:23 +0200 (Thu, 28 Aug 2008)

Log Message:
-----------
BGE Bugfix, lights were not being removed when their gameobject was removed causing odd shadows to hang about the scene.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-08-28 05:45:20 UTC (rev 16277)
+++ trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-08-28 07:03:23 UTC (rev 16278)
@@ -944,6 +944,8 @@
 	
 	newobj->RemoveMeshes();
 	ret = 1;
+	if (newobj->IsLight() && m_lightlist->RemoveValue(newobj))
+		ret = newobj->Release();
 	if (m_objectlist->RemoveValue(newobj))
 		ret = newobj->Release();
 	if (m_tempObjectList->RemoveValue(newobj))





More information about the Bf-blender-cvs mailing list