From 00132dd2ef580da6ffaacf25dbe9688b46816ffc Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 15 Jun 2012 10:19:23 -0300 Subject: [PATCH] Draft: Fixes in the clone object --- src/Mod/Draft/Draft.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index fc2596bebc..4fd8258fbc 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2857,9 +2857,13 @@ class _Clone: if hasattr(obj,"Scale") and not sh.isNull(): m.scale(obj.Scale) sh = sh.transformGeometry(m) - shapes.append(sh) + if not sh.isNull(): + shapes.append(sh) if shapes: - obj.Shape = Part.makeCompound(shapes) + if len(shapes) == 1: + obj.Shape = shapes[0] + else: + obj.Shape = Part.makeCompound(shapes) if not DraftGeomUtils.isNull(pl): obj.Placement = pl