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
611030b4
Commit
611030b4
authored
Oct 15, 2015
by
Dalai Felinto
Browse files
Close slave window
parent
b7bc11d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/operator.py
View file @
611030b4
...
...
@@ -51,6 +51,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
_hash_slave
=
-
1
_hash_master
=
-
1
_slave_status
=
0
_slave_window
=
None
action
=
bpy
.
props
.
EnumProperty
(
description
=
""
,
...
...
@@ -154,6 +155,12 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
if
self
.
_hmd
:
self
.
_hmd
.
quit
()
if
self
.
_slave_window
:
if
hasattr
(
self
.
_slave_window
,
"close"
):
self
.
_slave_window
.
close
()
else
:
print
(
"Error closing HMD window"
)
# cleanup viewport
if
context
.
area
:
context
.
area
.
tag_redraw
()
...
...
@@ -236,6 +243,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
self
.
_slave_status
=
SlaveStatus
.
error
self
.
quit
(
context
)
self
.
_slave_window
=
context
.
window
return
ok
def
_slaveHook
(
self
,
context
,
mode
=
''
):
...
...
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