Draft: Fix-gui_edit.py Y is zero input bug

Entering a Y=0 coordinate when editing points caused an error.
This commit is contained in:
Roy-043
2022-01-31 22:15:38 +01:00
committed by GitHub
parent 4d395f85bb
commit 89cf2f74be

View File

@@ -331,15 +331,13 @@ class Edit(gui_base_original.Modifier):
# self.alignWorkingPlane()
def numericInput(self, v, numy=None, numz=None):
def numericInput(self, numx, numy, numz):
"""Execute callback by the toolbar to activate the update function.
This function gets called by the toolbar
or by the mouse click and activate the update function.
"""
if numy:
v = App.Vector(v, numy, numz)
self.endEditing(self.obj, self.editing, v)
self.endEditing(self.obj, self.editing, App.Vector(numx, numy, numz))
App.ActiveDocument.recompute()