Draft: fix handling of MouseDelay

The MouseDelay sets a point value to None. In some cases this point was then still used resulting in attribute errors.

See:
https://github.com/FreeCAD/FreeCAD/issues/19531#issuecomment-2651341711
This commit is contained in:
Roy-043
2025-07-15 20:29:44 +02:00
committed by Yorik van Havre
parent 6e68d94c78
commit a8a44aab0a
12 changed files with 30 additions and 0 deletions

View File

@@ -158,6 +158,8 @@ class Rectangle(gui_base_original.Creator):
if arg["Type"] == "SoKeyboardEvent":
if arg["Key"] == "ESCAPE":
self.finish()
elif not self.ui.mouse:
pass
elif arg["Type"] == "SoLocation2Event": # mouse movement detection
self.point, ctrlPoint, info = gui_tool_utils.getPoint(self, arg, noTracker=True)
self.rect.update(self.point)