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
0dab4645
Commit
0dab4645
authored
Sep 30, 2015
by
Dalai Felinto
Browse files
Fix crash on quit
parent
224545aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/__init__.py
View file @
0dab4645
...
...
@@ -151,7 +151,8 @@ class HMD_Base:
"""
try
:
for
i
in
range
(
2
):
gpu
.
offscreen_object_free
(
self
.
_offscreen_object
[
i
])
if
self
.
_offscreen_object
[
i
]:
gpu
.
offscreen_object_free
(
self
.
_offscreen_object
[
i
])
except
Exception
as
E
:
print
(
E
)
...
...
space_view3d_virtual_reality/operator.py
View file @
0dab4645
...
...
@@ -87,7 +87,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
return
{
'RUNNING_MODAL'
}
else
:
# quit right away
wm
.
virtual_reality
.
is_enabled
=
False
vr
.
is_enabled
=
False
self
.
_quit
(
context
)
self
.
report
({
'ERROR'
},
"Error initializing device"
)
...
...
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