Skip to content
GitLab
Menu
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
bcf260d7
Commit
bcf260d7
authored
Oct 20, 2015
by
Dalai Felinto
Browse files
Debug function to try the OpenGL linking
parent
76c5fcf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/debug.py
View file @
bcf260d7
...
...
@@ -7,6 +7,11 @@ Debug device for testing
from
.
import
HMD_Base
from
..lib
import
(
checkModule
,
)
VERBOSE
=
False
def
print_debug
(
*
args
):
...
...
@@ -17,6 +22,7 @@ def print_debug(*args):
class
Debug
(
HMD_Base
):
def
__init__
(
self
,
context
,
error_callback
):
super
(
Debug
,
self
).
__init__
(
'Debug'
,
False
,
context
,
error_callback
)
checkModule
(
'hmd_sdk_bridge'
)
def
init
(
self
,
context
):
"""
...
...
@@ -83,6 +89,11 @@ class Debug(HMD_Base):
The frame is ready to be send to the device
"""
print_debug
(
'frameReady()'
)
import
bridge
import
bridge_wrapper
bridge_wrapper
.
Debug_draw
(
self
.
_color_texture
[
0
])
bridge_wrapper
.
Debug_draw
(
self
.
_color_texture
[
1
])
def
quit
(
self
):
"""
...
...
space_view3d_virtual_reality/operator.py
View file @
bcf260d7
...
...
@@ -293,7 +293,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
return
True
elif
self
.
_slave_status
==
SlaveStatus
.
usermoved
:
if
not
self
.
_is_mac
:
if
not
self
.
_is_mac
and
not
getDisplayBackend
(
context
)
==
'DEBUG'
:
bpy
.
ops
.
wm
.
window_fullscreen_toggle
()
space
=
context
.
space_data
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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