Revision: 8849
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8849&view=rev
Author:   hsujohnhsu
Date:     2010-08-12 02:55:01 +0000 (Thu, 12 Aug 2010)

Log Message:
-----------
fix model deletion of lights

Modified Paths:
--------------
    code/gazebo/trunk/server/rendering/Light.cc

Modified: code/gazebo/trunk/server/rendering/Light.cc
===================================================================
--- code/gazebo/trunk/server/rendering/Light.cc 2010-08-12 02:48:08 UTC (rev 
8848)
+++ code/gazebo/trunk/server/rendering/Light.cc 2010-08-12 02:55:01 UTC (rev 
8849)
@@ -71,6 +71,9 @@
 /// Destructor
 Light::~Light()
 {
+  if (this->light)
+    OgreAdaptor::Instance()->sceneMgr->destroyLight(this->GetName());
+    
   delete this->line;
   delete this->visual;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to