Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dalai Felinto
virtual_reality_viewport
Commits
02c6b921
Commit
02c6b921
authored
Oct 08, 2015
by
Dalai Felinto
Browse files
Toggle mode
parent
6106b8cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/operator.py
View file @
02c6b921
...
...
@@ -32,8 +32,9 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
description
=
""
,
items
=
((
"ENABLE"
,
"Enable"
,
"Enable"
),
(
"DISABLE"
,
"Disable"
,
"Disable"
),
(
"TOGGLE"
,
"Toggle"
,
"Toggle"
),
),
default
=
"
DISAB
LE"
,
default
=
"
TOGG
LE"
,
options
=
{
'SKIP_SAVE'
},
)
...
...
@@ -70,6 +71,9 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
is_enabled
=
vr
.
is_enabled
if
self
.
action
==
'TOGGLE'
:
self
.
action
=
'DISABLE'
if
is_enabled
else
'ENABLE'
if
self
.
action
==
'DISABLE'
:
if
vr
.
is_enabled
:
self
.
quit
(
context
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment