Disallow end_all_events in Gesture Nav Style

This commit is contained in:
bgbsww
2024-09-26 20:35:17 -04:00
committed by Yorik van Havre
parent 6a32980b5d
commit 33bea16a38

View File

@@ -866,6 +866,14 @@ def get_bbox(obj, debug=False):
# See https://forum.freecadweb.org/viewtopic.php?p=656362#p656362.
# Used to fix https://github.com/FreeCAD/FreeCAD/issues/10469.
def end_all_events():
view = get_3d_view()
if view is None:
return
if view.getNavigationType() in (
"Gui::GestureNavigationStyle", "Gui::MayaGestureNavigationStyle"
):
return
class DelayEnder:
def __init__(self):
self.delay_is_done = False