Draft: Fixed point tool
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user