Merge pull request #19089 from Roy-043/Draft-Clone-avoid-B-spline-faces-in-more-cases

Draft: Clone: avoid B-spline faces in more cases
This commit is contained in:
Roy-043
2025-02-17 15:12:53 +01:00
committed by Roy-043
parent cfb02b88be
commit 95dfb2ede8
+2 -6
View File
@@ -109,15 +109,11 @@ class Clone(DraftObject):
sh = self.join(obj, shapes)
m = App.Matrix()
if hasattr(obj,"Scale") and not sh.isNull():
sx,sy,sz = obj.Scale
if not DraftVecUtils.equals(obj.Scale,App.Vector(1, 1, 1)):
if not DraftVecUtils.equals(obj.Scale, App.Vector(1, 1, 1)):
op = sh.Placement
sh.Placement = App.Placement()
m.scale(obj.Scale)
if sx == sy == sz:
sh.transformShape(m)
else:
sh = sh.transformGeometry(m)
sh.transformShape(m, False, True)
sh.Placement = op
obj.Shape = sh