Assembly: Fix objects in group would not have the dragger appear when selected.

This commit is contained in:
PaddleStroke
2024-08-08 17:36:47 +02:00
committed by Chris Hennes
parent 39c4e2e600
commit 49fa67266f
2 changed files with 7 additions and 0 deletions

View File

@@ -2291,6 +2291,10 @@ App::DocumentObject* AssemblyObject::getMovingPartFromRef(App::DocumentObject* o
continue;
}
if (obj->isDerivedFrom<App::DocumentObjectGroup>()) {
continue; // we ignore groups.
}
return obj;
}

View File

@@ -1107,6 +1107,9 @@ def getMovingPart(assembly, ref):
if not obj:
continue
if obj.TypeId == "App::DocumentObjectGroup":
continue # we ignore groups.
return obj
return None