Skip to content

Commit

Permalink
Merge pull request FreeCAD#19089 from Roy-043/Draft-Clone-avoid-B-spl…
Browse files Browse the repository at this point in the history
…ine-faces-in-more-cases

Draft: Clone: avoid B-spline faces in more cases
  • Loading branch information
Roy-043 authored Jan 16, 2025
2 parents caca0ac + b31ada6 commit a66da9b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Mod/Draft/draftobjects/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,11 @@ def execute(self,obj):
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

Expand Down

0 comments on commit a66da9b

Please sign in to comment.