Draft: Fixed point tool

This commit is contained in:
Yorik van Havre
2017-02-07 10:38:18 -02:00
parent 15ab763652
commit c23d885bac

View File

@@ -4638,18 +4638,18 @@ class Point(Creator):
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()