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
c74cc6e3
Commit
c74cc6e3
authored
Oct 19, 2015
by
Dalai Felinto
Browse files
FIx for latest master changes
parent
b0c45e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/operator.py
View file @
c74cc6e3
...
@@ -402,6 +402,10 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
...
@@ -402,6 +402,10 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
self
.
_is_rendering
=
True
self
.
_is_rendering
=
True
self
.
_hmd
.
loop
(
context
)
self
.
_hmd
.
loop
(
context
)
scene
=
context
.
scene
view3d
=
context
.
space_data
region
=
context
.
region
for
i
in
range
(
2
):
for
i
in
range
(
2
):
self
.
_hmd
.
setEye
(
i
)
self
.
_hmd
.
setEye
(
i
)
...
@@ -410,7 +414,11 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
...
@@ -410,7 +414,11 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
modelview_matrix
=
self
.
_hmd
.
modelview_matrix
modelview_matrix
=
self
.
_hmd
.
modelview_matrix
# drawing
# drawing
offscreen_object
.
draw_view3d
(
projection_matrix
,
modelview_matrix
)
try
:
offscreen_object
.
draw_view3d
(
projection_matrix
,
modelview_matrix
)
except
:
#offscreen_object.draw_view3d(scene, view3d, region, projection_matrix, modelview_matrix)
offscreen_object
.
draw_view3d
(
scene
,
view3d
,
region
,
modelview_matrix
,
projection_matrix
)
self
.
_hmd
.
frameReady
()
self
.
_hmd
.
frameReady
()
self
.
_is_rendering
=
False
self
.
_is_rendering
=
False
...
...
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