[Draft] Edit bugfix

traker was not updated if endEditing function was called by numericInput
This commit is contained in:
carlopav
2019-12-30 22:37:59 +01:00
committed by Yorik van Havre
parent e5b700942a
commit c687d43bab

View File

@@ -507,7 +507,12 @@ class Edit():
self.trackers[obj.Name][nodeIndex].on()
FreeCADGui.Snapper.setSelectMode(True)
if v is None:
# endEditing is called by mousePressed
v = self.trackers[obj.Name][nodeIndex].get()
else:
# endEditing is called by numericInput, so tracker
# position should be updated manually
self.trackers[obj.Name][nodeIndex].set(v)
self.update(obj, nodeIndex, v)
self.ui.editUi(self.ui.lastMode)
self.node = []