From 5a6dfb7571c8db18dd7056c871ba1a651384a336 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 4 Jan 2021 17:32:22 -0600 Subject: Fix T78017: Broken layout in "View Lock" panel with armature The property split layout was broken when the bone dialog appeared, because the name field was not set. Theoretically property split should work in this case, but it makes sense to use the label anyway. --- release/scripts/startup/bl_ui/space_view3d.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/startup/bl_ui') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index eb8d6a63436..55cb110177f 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -5476,12 +5476,12 @@ class VIEW3D_PT_view3d_lock(Panel): view, "lock_bone", lock_object.data, "edit_bones" if lock_object.mode == 'EDIT' else "bones", - text="", + text="Bone", ) - else: - subcol = sub.column(heading="Lock") - subcol.prop(view, "lock_cursor", text="To 3D Cursor") + col = layout.column(heading="Lock", align=True) + if not lock_object: + col.prop(view, "lock_cursor", text="To 3D Cursor") col.prop(view, "lock_camera", text="Camera to View") -- cgit v1.2.3