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

OrthoEditProfile canvas update was broken due to recent changes to

performance levels.
parent 4b6fe081
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,12 @@ class SceneOpts(props.HasProperties): ...@@ -55,7 +55,12 @@ class SceneOpts(props.HasProperties):
to the colour bar, if it is being shown. to the colour bar, if it is being shown.
""" """
# NOTE: If you change the maximum performance value,
# make sure you update all references to
# performance because, for example, the
# OrthoEditProfile does numerical comparisons
# to it.
performance = props.Choice((1, 2, 3, 4), default=4) performance = props.Choice((1, 2, 3, 4), default=4)
"""User controllable performance setting. """User controllable performance setting.
......
...@@ -643,7 +643,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile): ...@@ -643,7 +643,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
# performance mode, the cursor # performance mode, the cursor
# is only drawn on the current # is only drawn on the current
# canvas. # canvas.
if self._viewPanel.getSceneOptions().performance < 5: if self._viewPanel.getSceneOptions().performance < 4:
cursors = [cursors[canvases.index(canvas)]] cursors = [cursors[canvases.index(canvas)]]
canvases = [canvas] canvases = [canvas]
...@@ -733,7 +733,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile): ...@@ -733,7 +733,7 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile):
On all lower performance settings, only the source canvas is updated. On all lower performance settings, only the source canvas is updated.
""" """
perf = self._viewPanel.getSceneOptions().performance perf = self._viewPanel.getSceneOptions().performance
if perf == 5: if perf == 4:
if mousePos is None or canvasPos is None: if mousePos is None or canvasPos is None:
self._viewPanel.Refresh() self._viewPanel.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