Skip to content

Commit

Permalink
Draft: Fixed continued dimension - fixes #1891
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 13, 2015
1 parent fa4f8b0 commit 7a71027
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Mod/Draft/DraftGui.py
Expand Up @@ -1701,7 +1701,6 @@ def changeLengthValue(self,d):
self.zValue.setText(displayExternal(v.z,self.DECIMALS,'Length'))

def changeAngleValue(self,d):
print d
v = FreeCAD.Vector(self.x,self.y,self.z)
a = DraftVecUtils.angle(v,FreeCAD.DraftWorkingPlane.u,FreeCAD.DraftWorkingPlane.axis)
a = math.radians(d)+a
Expand Down
11 changes: 7 additions & 4 deletions src/Mod/Draft/DraftTools.py
Expand Up @@ -1829,7 +1829,7 @@ def action(self,arg):
self.node[1] = Vector(self.node[1].x,self.node[0].y,self.node[0].z)
else:
self.force = None
if self.point2:
if self.point2 and (len(self.node) > 1):
self.node[1] = self.point2
self.point2 = None
# update the dimline
Expand Down Expand Up @@ -1905,7 +1905,8 @@ def action(self,arg):
elif (len(self.node) == 2) and self.cont:
self.node.append(self.cont)
self.createObject()
if not self.cont: self.finish()
if not self.cont:
self.finish()
elif (len(self.node) == 3):
# for unlinked arc mode:
# if self.arcmode:
Expand All @@ -1914,7 +1915,8 @@ def action(self,arg):
# cen = self.node[0].add(v)
# self.node = [self.node[0],self.node[1],cen]
self.createObject()
if not self.cont: self.finish()
if not self.cont:
self.finish()
elif self.angledata:
self.node.append(self.point)
self.createObject()
Expand All @@ -1929,7 +1931,8 @@ def numericInput(self,numx,numy,numz):
self.dimtrack.on()
elif (len(self.node) == 3):
self.createObject()
if not self.cont: self.finish()
if not self.cont:
self.finish()

class ShapeString(Creator):
"This class creates a shapestring feature."
Expand Down

0 comments on commit 7a71027

Please sign in to comment.