Skip to content

Commit

Permalink
Draft: Fixes from wandererfan
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 1, 2014
1 parent 7b07bdf commit 8a14564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2049,7 +2049,7 @@ def makeSketch(objectslist,autoconstraints=False,addTo=None,delete=False,name="S
# TODO add Radius constraits
ok = True
elif tp == "Rectangle":
if obj.FilletRadius == 0:
if obj.FilletRadius.Value == 0:
for edge in obj.Shape.Edges:
nobj.addGeometry(edge.Curve)
if autoconstraints:
Expand All @@ -2066,7 +2066,7 @@ def makeSketch(objectslist,autoconstraints=False,addTo=None,delete=False,name="S
nobj.addConstraint(Constraint("Vertical",last))
ok = True
elif tp in ["Wire","Polygon"]:
if obj.FilletRadius == 0:
if obj.FilletRadius.Value == 0:
closed = False
if tp == "Polygon":
closed = True
Expand Down Expand Up @@ -3196,7 +3196,7 @@ def updateData(self, obj, prop):
self.text.string = self.text3d.string = self.string

# set the distance property
if round(obj.Distance,precision()) != round(l,precision()):
if round(obj.Distance.Value,precision()) != round(l,precision()):
obj.Distance = l

# set the lines
Expand Down

0 comments on commit 8a14564

Please sign in to comment.