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
90556157
Commit
90556157
authored
Oct 16, 2015
by
Dalai Felinto
Browse files
Prevent error on super to crash the entire addon
parent
b7a34453
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/oculus.py
View file @
90556157
...
...
@@ -61,11 +61,12 @@ class Oculus(HMD_Base):
self
.
height
=
self
.
_hmd
.
height_right
# initialize FBO
super
(
Oculus
,
self
).
init
()
if
not
super
(
Oculus
,
self
).
init
():
raise
Exception
(
"Failed to initialize HMD"
)
# send it back to HMD
if
not
self
.
_setup
():
raise
Exception
(
"Failed to setup
HMD
"
)
raise
Exception
(
"Failed to setup
Oculus
"
)
except
Exception
as
E
:
self
.
error
(
"init"
,
E
,
True
)
...
...
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