Revision: 8446
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8446&view=rev
Author:   natepak
Date:     2009-12-04 16:31:55 +0000 (Fri, 04 Dec 2009)

Log Message:
-----------
Fixed seg fault when running with no rendering engine

Modified Paths:
--------------
    code/gazebo/trunk/server/physics/Geom.cc

Modified: code/gazebo/trunk/server/physics/Geom.cc
===================================================================
--- code/gazebo/trunk/server/physics/Geom.cc    2009-12-04 15:46:46 UTC (rev 
8445)
+++ code/gazebo/trunk/server/physics/Geom.cc    2009-12-04 16:31:55 UTC (rev 
8446)
@@ -136,18 +136,14 @@
 
       this->visuals.push_back(visual);
       visual->SetCastShadows(true);
+
+      if (this->IsStatic())
+        visual->MakeStatic();
     }
 
-    if (this->IsStatic())
-      visual->MakeStatic();
-      
-
     childNode = childNode->GetNext("visual");
   }
 
-
-
-
   if (this->GetType() != Shape::PLANE && this->GetType() != Shape::HEIGHTMAP)
   {
     World::Instance()->RegisterGeom(this);


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

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to