Skip to content

Commit

Permalink
mesh_shape: Fix resource group for meshes (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Sep 9, 2021
1 parent 5ff36ac commit 97f1ea5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void MeshShape::beginTriangles()
if (!started_)
{
started_ = true;
manual_object_->begin(material_name_, Ogre::RenderOperation::OT_TRIANGLE_LIST);
manual_object_->begin(material_name_, Ogre::RenderOperation::OT_TRIANGLE_LIST, "rviz_rendering");
}
}

Expand Down Expand Up @@ -126,7 +126,7 @@ void MeshShape::endTriangles()
entity_ = scene_manager_->createEntity(name);
if (entity_)
{
entity_->setMaterialName(material_name_);
entity_->setMaterialName(material_name_, "rviz_rendering");
offset_node_->attachObject(entity_);
}
else
Expand Down

0 comments on commit 97f1ea5

Please sign in to comment.