From 9ebc0298226cc068f1e7644a4e27f4563a6b399f Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 7 Feb 2017 10:38:18 -0200 Subject: [PATCH] Draft: Fixed point tool --- src/Mod/Draft/DraftTools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/DraftTools.py b/src/Mod/Draft/DraftTools.py index d6bde7a6f1..c86354e0d2 100644 --- a/src/Mod/Draft/DraftTools.py +++ b/src/Mod/Draft/DraftTools.py @@ -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()