Draft: Allow Clones to clone a group
This commit is contained in:
parent
26b424e776
commit
60e63e12d6
|
@ -5046,7 +5046,8 @@ class _Clone(_DraftObject):
|
||||||
if not o.isDerivedFrom("Part::Part2DObject"):
|
if not o.isDerivedFrom("Part::Part2DObject"):
|
||||||
FreeCAD.Console.PrintWarning("Warning 2D Clone "+obj.Name+" contains 3D geometry")
|
FreeCAD.Console.PrintWarning("Warning 2D Clone "+obj.Name+" contains 3D geometry")
|
||||||
return
|
return
|
||||||
for o in obj.Objects:
|
objs = getGroupContents(obj.Objects)
|
||||||
|
for o in objs:
|
||||||
if o.isDerivedFrom("Part::Feature"):
|
if o.isDerivedFrom("Part::Feature"):
|
||||||
if o.Shape.isNull():
|
if o.Shape.isNull():
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user