Skip to content

Commit

Permalink
support multiple material for one link (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada authored and wjwwood committed Jun 5, 2017
1 parent 3f2adb3 commit ba3014a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz/robot/robot_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ Ogre::MaterialPtr RobotLink::getMaterialForLink( const urdf::LinkConstSharedPtr&
mat->getTechnique(0)->setLightingEnabled(true);

boost::shared_ptr<urdf::Visual> visual = link->visual;
std::vector<boost::shared_ptr<urdf::Visual> >::const_iterator vi;
std::vector<urdf::VisualSharedPtr>::const_iterator vi;
for( vi = link->visual_array.begin(); vi != link->visual_array.end(); vi++ )
{
if( (*vi) && material_name != "" && (*vi)->material_name == material_name) {
Expand Down

0 comments on commit ba3014a

Please sign in to comment.