Do not hide (gray out) lens/lock to object/lock to cursor options in Quad views (View panel)...

This commit is contained in:
2012-04-13 15:21:26 +00:00
parent 87364befd9
commit 20110e703e

View File

@@ -2176,14 +2176,18 @@ class VIEW3D_PT_view3d_properties(Panel):
view = context.space_data
col = layout.column()
col.active = view.region_3d.view_perspective != 'CAMERA'
col.active = bool(view.region_3d.view_perspective != 'CAMERA' or
view.region_quadview)
col.prop(view, "lens")
col.label(text="Lock to Object:")
col.prop(view, "lock_object", text="")
lock_object = view.lock_object
if lock_object:
if lock_object.type == 'ARMATURE':
col.prop_search(view, "lock_bone", lock_object.data, "edit_bones" if lock_object.mode == 'EDIT' else "bones", text="")
col.prop_search(view, "lock_bone", lock_object.data,
"edit_bones" if lock_object.mode == 'EDIT'
else "bones",
text="")
else:
col.prop(view, "lock_cursor", text="Lock to Cursor")