Skip to content

Commit abd3887

Browse files
committed
Revert "Fix crash when calling setPose service on static and nolink entity (#2988)"
This reverts commit aab29bc. Signed-off-by: Ian Chen <[email protected]>
1 parent 0699ffe commit abd3887

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/systems/physics/Physics.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,14 +2485,6 @@ void PhysicsPrivate::UpdatePhysics(EntityComponentManager &_ecm)
24852485
<< std::endl;
24862486
return true;
24872487
}
2488-
sim::Model model(_entity);
2489-
if (model.Links(_ecm).empty())
2490-
{
2491-
gzerr << "SetPose is not supported for models without any link."
2492-
<< "Entity [" << _entity << "]."
2493-
<< "Request ignored" << std::endl;
2494-
return true;
2495-
}
24962488
auto modelPtrPhys = this->entityModelMap.Get(_entity);
24972489
if (nullptr == modelPtrPhys)
24982490
return true;

0 commit comments

Comments
 (0)