Skip to content

Instantly share code, notes, and snippets.

View n0dabba's full-sized avatar

Nodabba n0dabba

View GitHub Profile
diff -ruN original/gazebo-9.0.0/gazebo/gui/model/JointMaker.cc patched/gazebo-9.0.0/gazebo/gui/model/JointMaker.cc
--- original/gazebo-9.0.0/gazebo/gui/model/JointMaker.cc 2018-01-25 23:25:47.000000000 +0100
+++ patched/gazebo-9.0.0/gazebo/gui/model/JointMaker.cc 2018-06-02 21:55:56.462116279 +0200
@@ -506,7 +506,7 @@
jointData->parent = _parent;
jointData->line = jointLine;
jointData->type = this->dataPtr->jointType;
- jointData->line->setMaterial(this->jointMaterials[jointData->type]);
+ jointData->line->setMaterial(Ogre::MaterialManager::getSingleton().getByName(this->jointMaterials[jointData->type]));