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

Spline interpolation option will fall back to linear if spline not

available.
parent 3a8292c5
No related branches found
No related tags found
No related merge requests found
......@@ -343,6 +343,10 @@ def bootstrap(glVersion=None):
import fsl.fsleyes.displaycontext.display as fsldisplay
dc.VolumeOpts .interpolation.removeChoice('spline')
dc.RGBVectorOpts.interpolation.removeChoice('spline')
dc.VolumeOpts .interpolation.updateChoice('linear',
newAlt=['spline'])
dc.RGBVectorOpts.interpolation.updateChoice('linear',
newAlt=['spline'])
# Tensor overlays are not available in GL14
dc .ALL_OVERLAY_TYPES .remove('tensor')
......@@ -365,20 +369,8 @@ def bootstrap(glVersion=None):
'lowering default performance settings.')
import fsl.fsleyes.displaycontext as dc
dc.SceneOpts.performance.setConstraint(None, 'default', 2)
# And disable some fancy options - spline
# may have been disabled above, so absorb
# the ValueError if it occurs
# TODO Remove this code duplication
try:
dc.VolumeOpts .interpolation.removeChoice('spline')
dc.RGBVectorOpts.interpolation.removeChoice('spline')
except ValueError: pass
thismod.GL_VERSION = verstr
thismod.glvolume_funcs = glpkg.glvolume_funcs
thismod.glrgbvector_funcs = glpkg.glrgbvector_funcs
......
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