Draft: makeCopy support to reparent App::Part grouped objs
This commit is contained in:
committed by
Yorik van Havre
parent
e30cf42176
commit
07745ef467
@@ -74,7 +74,7 @@ def make_copy(obj, force=None, reparent=False, simple_copy=False):
|
||||
parents = obj.InList
|
||||
if parents:
|
||||
for par in parents:
|
||||
if par.isDerivedFrom("App::DocumentObjectGroup"):
|
||||
if par.isDerivedFrom("App::DocumentObjectGroup") or par.isDerivedFrom("App::Part"):
|
||||
par.addObject(newobj)
|
||||
else:
|
||||
# That's the case of Arch_BuildingParts or Draft_Layers for example
|
||||
|
||||
Reference in New Issue
Block a user