Skip to content

Commit

Permalink
Reviewer feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Sep 9, 2020
1 parent 75a5b3a commit cbd9853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gazebo/physics/Model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ void Model::Load(sdf::ElementPtr _sdf)
BasePtr parentEntity = this->GetParent();
if (nullptr != parentEntity && !modelName.empty())
{
if (boost::dynamic_pointer_cast<Model>(parentEntity))
auto parentModelPtr = boost::dynamic_pointer_cast<Model>(parentEntity);
if (parentModelPtr)
{
auto parentDom =
boost::dynamic_pointer_cast<Model>(parentEntity)->GetSDFDom();
auto parentDom = parentModelPtr->GetSDFDom();
if (nullptr != parentDom)
{
this->modelSDFDom = parentDom->ModelByName(modelName);
Expand Down

0 comments on commit cbd9853

Please sign in to comment.