Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
478f0466
Commit
478f0466
authored
3 years ago
by
Peter Kim
Browse files
Options
Downloads
Patches
Plain Diff
VR: Add object extras, object types visibility session options
See D14220.
parent
a84f9f5f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
viewport_vr_preview/gui.py
+21
-0
21 additions, 0 deletions
viewport_vr_preview/gui.py
with
21 additions
and
0 deletions
viewport_vr_preview/gui.py
+
21
−
0
View file @
478f0466
...
@@ -14,6 +14,11 @@ from bpy.types import (
...
@@ -14,6 +14,11 @@ from bpy.types import (
Panel
,
Panel
,
UIList
,
UIList
,
)
)
# Add space_view3d.py to module search path for VIEW3D_PT_object_type_visibility import.
import
os.path
,
sys
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
../../startup/bl_ui
'
)))
from
space_view3d
import
VIEW3D_PT_object_type_visibility
### Session.
### Session.
class
VIEW3D_PT_vr_session
(
Panel
):
class
VIEW3D_PT_vr_session
(
Panel
):
...
@@ -72,6 +77,15 @@ class VIEW3D_PT_vr_session_view(Panel):
...
@@ -72,6 +77,15 @@ class VIEW3D_PT_vr_session_view(Panel):
col
.
prop
(
session_settings
,
"
show_selection
"
,
text
=
"
Selection
"
)
col
.
prop
(
session_settings
,
"
show_selection
"
,
text
=
"
Selection
"
)
col
.
prop
(
session_settings
,
"
show_controllers
"
,
text
=
"
Controllers
"
)
col
.
prop
(
session_settings
,
"
show_controllers
"
,
text
=
"
Controllers
"
)
col
.
prop
(
session_settings
,
"
show_custom_overlays
"
,
text
=
"
Custom Overlays
"
)
col
.
prop
(
session_settings
,
"
show_custom_overlays
"
,
text
=
"
Custom Overlays
"
)
col
.
prop
(
session_settings
,
"
show_object_extras
"
,
text
=
"
Object Extras
"
)
col
=
col
.
row
(
align
=
True
,
heading
=
"
"
)
col
.
scale_x
=
2.0
col
.
popover
(
panel
=
"
VIEW3D_PT_vr_session_view_object_type_visibility
"
,
icon_value
=
session_settings
.
icon_from_show_object_viewport
,
text
=
""
,
)
col
=
layout
.
column
(
align
=
True
)
col
=
layout
.
column
(
align
=
True
)
col
.
prop
(
session_settings
,
"
controller_draw_style
"
,
text
=
"
Controller Style
"
)
col
.
prop
(
session_settings
,
"
controller_draw_style
"
,
text
=
"
Controller Style
"
)
...
@@ -81,6 +95,12 @@ class VIEW3D_PT_vr_session_view(Panel):
...
@@ -81,6 +95,12 @@ class VIEW3D_PT_vr_session_view(Panel):
col
.
prop
(
session_settings
,
"
clip_end
"
,
text
=
"
End
"
)
col
.
prop
(
session_settings
,
"
clip_end
"
,
text
=
"
End
"
)
class
VIEW3D_PT_vr_session_view_object_type_visibility
(
VIEW3D_PT_object_type_visibility
):
def
draw
(
self
,
context
):
session_settings
=
context
.
window_manager
.
xr_session_settings
self
.
draw_ex
(
context
,
session_settings
,
False
)
# Pass session settings instead of 3D view.
### Landmarks.
### Landmarks.
class
VIEW3D_MT_vr_landmark_menu
(
Menu
):
class
VIEW3D_MT_vr_landmark_menu
(
Menu
):
bl_label
=
"
Landmark Controls
"
bl_label
=
"
Landmark Controls
"
...
@@ -228,6 +248,7 @@ class VIEW3D_PT_vr_info(bpy.types.Panel):
...
@@ -228,6 +248,7 @@ class VIEW3D_PT_vr_info(bpy.types.Panel):
classes
=
(
classes
=
(
VIEW3D_PT_vr_session
,
VIEW3D_PT_vr_session
,
VIEW3D_PT_vr_session_view
,
VIEW3D_PT_vr_session_view
,
VIEW3D_PT_vr_session_view_object_type_visibility
,
VIEW3D_PT_vr_landmarks
,
VIEW3D_PT_vr_landmarks
,
VIEW3D_PT_vr_actionmaps
,
VIEW3D_PT_vr_actionmaps
,
VIEW3D_PT_vr_viewport_feedback
,
VIEW3D_PT_vr_viewport_feedback
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment