From 99812e3ed857b996e542ac8da9ffdd7cb9917b06 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 22 Sep 2025 17:31:24 +0200 Subject: [PATCH] Draft: fix snapper lagging (#24081) * Draft: fix snapper lagging The `WorkingPlane.get_working_plane()` function is too slow to be called repeatedly by `_get_wp`. That function has been reverted to what it was before #19728. * Draft: fix snapper lagging Using WorkingPlane.get_working_plane(update=False) instead of reverting. --- src/Mod/Draft/draftguitools/gui_snapper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftguitools/gui_snapper.py b/src/Mod/Draft/draftguitools/gui_snapper.py index 166e7093da..7145ad9e84 100644 --- a/src/Mod/Draft/draftguitools/gui_snapper.py +++ b/src/Mod/Draft/draftguitools/gui_snapper.py @@ -162,7 +162,11 @@ class Snapper: def _get_wp(self): - return WorkingPlane.get_working_plane() + # update=False is required, without it WorkingPlane.get_working_plane() + # is too slow for this function which gets called repeatedly when moving + # the mouse + # See: https://github.com/FreeCAD/FreeCAD/issues/24013 + return WorkingPlane.get_working_plane(update=False) def init_active_snaps(self):