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
3ae7ebe3
Commit
3ae7ebe3
authored
Oct 15, 2015
by
Dalai Felinto
Browse files
OSX needs a small break before continuing
parent
fcd225b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/operator.py
View file @
3ae7ebe3
...
@@ -30,8 +30,9 @@ class SlaveStatus:
...
@@ -30,8 +30,9 @@ class SlaveStatus:
uiless
=
2
# view3d without UI
uiless
=
2
# view3d without UI
waituser
=
3
# waiting for user to move window to HMD
waituser
=
3
# waiting for user to move window to HMD
usermoved
=
4
# user moved window
usermoved
=
4
# user moved window
ready
=
5
# all went well
fullscreen
=
5
# wait a bit to prevent a crash on OSX
error
=
6
# something didn't work
ready
=
6
# all went well
error
=
7
# something didn't work
# ############################################################
# ############################################################
...
@@ -220,9 +221,11 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
...
@@ -220,9 +221,11 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
return
True
return
True
elif
self
.
_slave_status
==
SlaveStatus
.
usermoved
:
elif
self
.
_slave_status
==
SlaveStatus
.
usermoved
:
context
.
window_manager
.
virtual_reality
.
is_slave_setup
=
False
bpy
.
ops
.
wm
.
window_fullscreen_toggle
()
bpy
.
ops
.
wm
.
window_fullscreen_toggle
()
self
.
_slave_status
=
SlaveStatus
.
fullscreen
elif
self
.
_slave_status
==
SlaveStatus
.
fullscreen
:
context
.
window_manager
.
virtual_reality
.
is_slave_setup
=
False
ok
=
self
.
_init
(
context
)
ok
=
self
.
_init
(
context
)
self
.
_slave_status
=
SlaveStatus
.
ready
self
.
_slave_status
=
SlaveStatus
.
ready
...
...
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