Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-03-13 14:32:31 +0300
committerJulian Eisel <julian@blender.org>2020-03-13 14:32:31 +0300
commita5b2fd7882902d2681c75ef20e835a6eefcde3c4 (patch)
treea3578595dc9e897d4fffd3e9da955b2ffd2983b0
parent2c4399701297bff9ff1a8ee0d0ffd3f28e5520fe (diff)
Add render-pass option to VR view shading settings
-rw-r--r--viewport_vr_preview.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py
index 4849b38c..f3b2a3b7 100644
--- a/viewport_vr_preview.py
+++ b/viewport_vr_preview.py
@@ -431,6 +431,28 @@ class VIEW3D_PT_vr_session_shading_options(bpy.types.Panel):
View3DShadingOptionsLayout.draw(context, shading, self.layout)
+class VIEW3D_PT_vr_session_shading_render_pass(bpy.types.Panel):
+ bl_space_type = 'VIEW_3D'
+ bl_region_type = 'UI'
+ bl_category = "VR"
+ bl_label = View3DShadingRenderPassLayout.bl_label
+ bl_parent_id = "VIEW3D_PT_vr_session_shading"
+ bl_options = {'DEFAULT_CLOSED'}
+
+ @classmethod
+ def poll(cls, context):
+ session_settings = context.window_manager.xr_session_settings
+ shading = session_settings.shading
+ return View3DShadingRenderPassLayout.poll(context, shading)
+
+ def draw(self, context):
+ session_settings = context.window_manager.xr_session_settings
+ shading = session_settings.shading
+
+ View3DShadingRenderPassLayout.draw(
+ context, shading, self.layout)
+
+
class VIEW3D_PT_vr_viewport_feedback(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
@@ -534,6 +556,7 @@ classes = (
VIEW3D_PT_vr_session_shading_lighting,
VIEW3D_PT_vr_session_shading_color,
VIEW3D_PT_vr_session_shading_options,
+ VIEW3D_PT_vr_session_shading_render_pass,
VIEW3D_PT_vr_landmarks,
VIEW3D_PT_vr_viewport_feedback,