Skip to content

Commit

Permalink
Update Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttach…
Browse files Browse the repository at this point in the history
…BodyPerformer.inl

Co-authored-by: Hugo <[email protected]>
  • Loading branch information
bakpaul and hugtalbot authored Apr 12, 2024
1 parent ae6ff07 commit b2e5677
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ void BaseAttachBodyPerformer<DataTypes>::start()
return;
}
const BodyPicked picked=this->m_interactor->getBodyPicked();
if (!picked.body && !picked.mstate) return;
if (!picked.body && !picked.mstate)
return;

if (!startPartial(picked)) return; //template specialized code is here
if (!startPartial(picked)) //template specialized code is here
return;

double distanceFromMouse=picked.rayLength;
this->m_interactor->setDistanceFromMouse(distanceFromMouse);
Expand Down

0 comments on commit b2e5677

Please sign in to comment.