PartDesign: Enable the use of the core datums as references.

This commit is contained in:
PaddleStroke
2024-10-10 15:42:38 +02:00
parent 7009abc8f7
commit 5162a2a093

View File

@@ -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;
}
}