Revision: 8506
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8506&view=rev
Author:   hsujohnhsu
Date:     2010-01-15 09:39:55 +0000 (Fri, 15 Jan 2010)

Log Message:
-----------
delete visuals in UserCamera on destruction

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

Modified: code/gazebo/trunk/server/rendering/UserCamera.cc
===================================================================
--- code/gazebo/trunk/server/rendering/UserCamera.cc    2010-01-14 18:09:24 UTC 
(rev 8505)
+++ code/gazebo/trunk/server/rendering/UserCamera.cc    2010-01-15 09:39:55 UTC 
(rev 8506)
@@ -61,6 +61,11 @@
 /// Destructor
 UserCamera::~UserCamera()
 {
+  if (this->visual)
+  {
+    OgreCreator::Instance()->DeleteVisual( this->visual );
+    this->visual = NULL;
+  }
 }
 
 
////////////////////////////////////////////////////////////////////////////////


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

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to