Skip to content

Commit

Permalink
Draft: Fixed point tool
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Feb 7, 2017
1 parent 15ab763 commit c23d885
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Draft/DraftTools.py
Expand Up @@ -4638,18 +4638,18 @@ def click(self,event_cb=None):
commitlist = []
if Draft.getParam("UsePartPrimitives",False):
# using
commitlist.append(translate("draft","Create Point"),
commitlist.append((translate("draft","Create Point"),
['point = FreeCAD.ActiveDocument.addObject("Part::Vertex","Point")',
'point.X = '+str(self.stack[0][0]),
'point.Y = '+str(self.stack[0][1]),
'point.Z = '+str(self.stack[0][2]),
'Draft.autogroup(point)'])
'Draft.autogroup(point)']))
else:
# building command string
FreeCADGui.addModule("Draft")
commitlist.append(translate("draft","Create Point"),
commitlist.append((translate("draft","Create Point"),
['point = Draft.makePoint('+str(self.stack[0][0])+','+str(self.stack[0][1])+','+str(self.stack[0][2])+')',
'Draft.autogroup(point)'])
'Draft.autogroup(point)']))
todo.delayCommit(commitlist)
FreeCADGui.Snapper.off()
self.finish()
Expand Down

0 comments on commit c23d885

Please sign in to comment.