Skip to content

Commit

Permalink
Draft: Apply clones scaling before the placement - fixes #2681
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Aug 26, 2016
1 parent 46adbae commit f1bc0ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -5341,11 +5341,14 @@ def execute(self,obj):
if hasattr(obj,"Scale") and not sh.isNull():
sx,sy,sz = obj.Scale
if not DraftVecUtils.equals(obj.Scale,Vector(1,1,1)):
op = sh.Placement
sh.Placement = FreeCAD.Placement()
m.scale(obj.Scale)
if sx == sy == sz:
sh.transformShape(m)
else:
sh = sh.transformGeometry(m)
sh.Placement = op
if not sh.isNull():
shapes.append(sh)
if shapes:
Expand Down

0 comments on commit f1bc0ce

Please sign in to comment.