Assembly: Fix objects in group would not have the dragger appear when selected.
This commit is contained in:
committed by
Chris Hennes
parent
39c4e2e600
commit
49fa67266f
@@ -2291,6 +2291,10 @@ App::DocumentObject* AssemblyObject::getMovingPartFromRef(App::DocumentObject* o
|
||||
continue;
|
||||
}
|
||||
|
||||
if (obj->isDerivedFrom<App::DocumentObjectGroup>()) {
|
||||
continue; // we ignore groups.
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user