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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2015-06-13 19:26:15 +0300
committerDalai Felinto <dfelinto@gmail.com>2015-06-13 20:09:22 +0300
commite944af67f7eb42ed6851718205a09dded26c8b3a (patch)
tree88a0309d28c1793781d385f5c7686a7b3366da7a /release/scripts
parent41d5ff6fe9b283bfc5c68aad08003583b40f0e8a (diff)
Multi-View: Fix - stereo 3d background image in viewport not working
The functionality was there, but the UI was missing, since I introduced the use_mutliview option in the Image datablocks. Note: when opening the image via the background image UI it has its views data mangled. I'll look at that. Meanwhile the fix is to toggle Use Multi-View manually in the UI.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 830c70ea20f..2933e3d5698 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3236,6 +3236,7 @@ class VIEW3D_PT_background_image(Panel):
layout = self.layout
view = context.space_data
+ use_multiview = context.scene.render.use_multiview
col = layout.column()
col.operator("view3d.background_image_add", text="Add Image")
@@ -3273,6 +3274,19 @@ class VIEW3D_PT_background_image(Panel):
box.template_image(bg, "image", bg.image_user, compact=True)
has_bg = True
+ if use_multiview and bg.view_axis in {'CAMERA','ALL'}:
+ box.prop(bg.image, "use_multiview")
+
+ column = box.column()
+ column.active = bg.image.use_multiview
+
+ column.label(text="Views Format:")
+ column.row().prop(bg.image, "views_format", expand=True)
+
+ sub = column.box()
+ sub.active = bg.image.views_format == 'STEREO_3D'
+ sub.template_image_stereo_3d(bg.image.stereo_3d_format)
+
elif bg.source == 'MOVIE_CLIP':
box.prop(bg, "use_camera_clip")