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.
This commit is contained in:
Roy-043
2025-09-22 17:31:24 +02:00
committed by GitHub
parent 3569e77172
commit 99812e3ed8

View File

@@ -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):