Skip to content
Snippets Groups Projects
Commit a7e9e209 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Selection cursor is only drawn on the target canvas on mouse

moves. Greatly improves performance when running over X11
parent a1bed04c
No related branches found
Tags 2111.3
No related merge requests found
......@@ -840,16 +840,16 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
On all lower performance settings, only the source canvas is updated.
"""
perf = self._viewPanel.getSceneOptions().performance
if perf == 4:
if mousePos is None or canvasPos is None:
self._viewPanel.Refresh()
# If running in high performance mode, we make
# the canvas location track the edit cursor
# location, so that the other two canvases
# update to display the current cursor location.
else:
self._navModeLeftMouseDrag(ev, canvas, mousePos, canvasPos)
# If running in high performance mode, we make
# the canvas location track the edit cursor
# location, so that the other two canvases
# update to display the current cursor location.
if perf == 4 and \
(mousePos is not None) and \
(canvasPos is not None):
self._navModeLeftMouseDrag(ev, canvas, mousePos, canvasPos)
else:
canvas.Refresh()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment