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

Default SceneOpts.performance level is set when specified on command

line - previously was only applied to existing SceneOpts instances.
parent 2aa1b89d
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,7 @@ def interface(parent, args, ctx):
import wx
import fsl.fsleyes.fsleyes_parseargs as fsleyes_parseargs
import fsl.fsleyes.frame as fsleyesframe
import fsl.fsleyes.displaycontext as fsldisplay
import fsl.fsleyes.views as views
overlayList, displayCtx, splashFrame = ctx
......@@ -267,6 +268,13 @@ def interface(parent, args, ctx):
status.update('Setting up scene...')
# Set the default SceneOpts.performance
# level so that all created SceneOpts
# instances will default to it
if args.performance is not None:
fsldisplay.SceneOpts.performance.setConstraint(
None, 'default', args.performance)
# If a perspective has been specified,
# we load the perspective
if args.scene is not None:
......
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