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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-03-11 18:07:53 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-03-11 18:22:09 +0400
commita2ffd8e4234e7113466b236fa6cb4ab20c9f048e (patch)
treec8477da0c459bc24b0f256ffd4ba616cc68af18e /release
parenta6bdad699c77209a6ff84a2ec80693feaf9012d0 (diff)
Fix T39028: Quadview views inaccessible with python except bottom right view.
Expose all four quadviews in a collection in RNA API. Note the region returned by old region_quadview property is now region_quadviews[2].
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 98c855d9419..8d5170af837 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2693,8 +2693,7 @@ class VIEW3D_PT_view3d_properties(Panel):
view = context.space_data
col = layout.column()
- col.active = bool(view.region_3d.view_perspective != 'CAMERA' or
- view.region_quadview)
+ col.active = bool(view.region_3d.view_perspective != 'CAMERA' or view.region_quadviews)
col.prop(view, "lens")
col.label(text="Lock to Object:")
col.prop(view, "lock_object", text="")
@@ -2817,11 +2816,10 @@ class VIEW3D_PT_view3d_display(Panel):
layout.separator()
- region = view.region_quadview
-
layout.operator("screen.region_quadview", text="Toggle Quad View")
- if region:
+ if view.region_quadviews:
+ region = view.region_quadviews[2]
col = layout.column()
col.prop(region, "lock_rotation")
row = col.row()