diff --git a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp index 70f6817951..78cd679cdc 100644 --- a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp +++ b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp @@ -148,12 +148,12 @@ bool ReferenceSelection::allowOrigin(PartDesign::Body *body, App::OriginGroupExt if (fits) { // check that it actually belongs to the chosen body or part try { // here are some throwers if (body) { - if (body->getOrigin ()->hasObject (pObj) ) { + if (body->hasObject(pObj, true) ) { return true; } } else if (originGroup ) { - if (originGroup->getOrigin()->hasObject(pObj)) { + if (originGroup->hasObject(pObj, true)) { return true; } }