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
f48a5b2f
Commit
f48a5b2f
authored
Oct 16, 2015
by
Dalai Felinto
Browse files
Debug option to investigate the performance with the recent proposed optimization
parent
bde6d747
Changes
2
Show whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/operator.py
View file @
f48a5b2f
...
...
@@ -531,7 +531,8 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
"""
hide all the scene objects to speed up rendering
"""
if
self
.
_is_rendering
:
if
self
.
_is_rendering
or
\
context
.
window_manager
.
virtual_reality
.
is_debug
:
return
area
=
context
.
area
...
...
@@ -549,7 +550,8 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
"""
show all the hidden objects
"""
if
self
.
_is_rendering
:
if
self
.
_is_rendering
or
\
context
.
window_manager
.
virtual_reality
.
is_debug
:
return
area
=
context
.
area
...
...
@@ -666,6 +668,12 @@ class VirtualRealityInfo(bpy.types.PropertyGroup):
default
=
False
,
)
is_debug
=
BoolProperty
(
name
=
"Debug"
,
default
=
False
,
description
=
"Skip the optimization to prevent extra drawing"
,
)
commands
=
CollectionProperty
(
type
=
VirtualRealityCommandInfo
)
...
...
@@ -689,6 +697,7 @@ class VirtualRealityInfo(bpy.types.PropertyGroup):
self
.
is_enabled
=
False
self
.
is_slave_setup
=
False
self
.
is_paused
=
False
self
.
is_debug
=
False
# ############################################################
...
...
space_view3d_virtual_reality/ui.py
View file @
f48a5b2f
...
...
@@ -55,6 +55,9 @@ class VirtualRealityPanel(bpy.types.Panel):
col
.
separator
()
col
.
label
(
text
=
vr
.
error_message
)
col
.
separator
()
col
.
prop
(
vr
,
"is_debug"
)
# ############################################################
# Un/Registration
...
...
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