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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user