From b2e5677f625f277fbfff7c50de4f2186ed30f617 Mon Sep 17 00:00:00 2001 From: Paul Baksic <30337881+bakpaul@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:31:46 +0200 Subject: [PATCH] Update Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttachBodyPerformer.inl Co-authored-by: Hugo --- .../gui/component/performer/BaseAttachBodyPerformer.inl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttachBodyPerformer.inl b/Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttachBodyPerformer.inl index 6527bdd96f34..dc9efcc3c2f2 100644 --- a/Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttachBodyPerformer.inl +++ b/Sofa/GUI/Component/src/sofa/gui/component/performer/BaseAttachBodyPerformer.inl @@ -53,9 +53,11 @@ void BaseAttachBodyPerformer::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);