Revision: 7688
http://playerstage.svn.sourceforge.net/playerstage/?rev=7688&view=rev
Author: natepak
Date: 2009-05-18 18:26:48 +0000 (Mon, 18 May 2009)
Log Message:
-----------
Fixed drawing of joints
Modified Paths:
--------------
code/gazebo/trunk/server/physics/Geom.cc
code/gazebo/trunk/server/physics/Joint.cc
Modified: code/gazebo/trunk/server/physics/Geom.cc
===================================================================
--- code/gazebo/trunk/server/physics/Geom.cc 2009-05-18 16:26:49 UTC (rev
7687)
+++ code/gazebo/trunk/server/physics/Geom.cc 2009-05-18 18:26:48 UTC (rev
7688)
@@ -529,7 +529,7 @@
{
if (*iter)
{
- (*iter)->SetVisible(false, false);
+ (*iter)->SetVisible(true, false);
(*iter)->SetTransparency(0.6);
}
}
@@ -540,8 +540,8 @@
{
if (*iter)
{
- (*iter)->SetVisible(true, false);
- (*iter)->SetTransparency(1.0);
+ (*iter)->SetVisible(true, true);
+ (*iter)->SetTransparency(0.0);
}
}
}
Modified: code/gazebo/trunk/server/physics/Joint.cc
===================================================================
--- code/gazebo/trunk/server/physics/Joint.cc 2009-05-18 16:26:49 UTC (rev
7687)
+++ code/gazebo/trunk/server/physics/Joint.cc 2009-05-18 18:26:48 UTC (rev
7688)
@@ -138,7 +138,7 @@
/// Add a renderable for the joint
this->visual = OgreCreator::Instance()->CreateVisual(
- visname.str(), this->model->GetVisualNode());
+ visname.str(), NULL);
if (this->visual)
{
this->visual->AttachMesh("joint_anchor");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit