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()