[Bf-blender-cvs] [fa023e9] blender-v2.75-release: Multi-View: Fix - stereo 3d background image in viewport not working
Dalai Felinto
noreply at git.blender.org
Thu Jun 18 17:37:01 CEST 2015
Commit: fa023e9899645e7fb0df13106681791d2de2cfa0
Author: Dalai Felinto
Date: Sat Jun 13 13:26:15 2015 -0300
Branches: blender-v2.75-release
https://developer.blender.org/rBfa023e9899645e7fb0df13106681791d2de2cfa0
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.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index b487a18..3bcfdee 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3221,6 +3221,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")
@@ -3258,6 +3259,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")
More information about the Bf-blender-cvs
mailing list