Skip to content

Commit

Permalink
Swap out deprecated Ogre::MovableObject::setUserAny.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Jun 3, 2016
1 parent d28b37c commit 41c2a66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rviz/ogre_helpers/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void Grid::create()

void Grid::setUserData( const Ogre::Any& data )
{
manual_object_->setUserAny( data );
manual_object_->getUserObjectBindings().setUserAny( data );
}

} // namespace rviz
2 changes: 1 addition & 1 deletion src/rviz/ogre_helpers/line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const Ogre::Quaternion& Line::getOrientation()

void Line::setUserData( const Ogre::Any& data )
{
manual_object_->setUserAny( data );
manual_object_->getUserObjectBindings().setUserAny( data );
}


Expand Down
2 changes: 1 addition & 1 deletion src/rviz/ogre_helpers/shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const Ogre::Quaternion& Shape::getOrientation()
void Shape::setUserData( const Ogre::Any& data )
{
if (entity_)
entity_->setUserAny( data );
entity_->getUserObjectBindings().setUserAny( data );
else
ROS_ERROR("Shape not yet fully constructed. Cannot set user data. Did you add triangles to the mesh already?");
}
Expand Down

0 comments on commit 41c2a66

Please sign in to comment.