diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:32:22 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:32:22 +0300 |
commit | 5a6dfb7571c8db18dd7056c871ba1a651384a336 (patch) | |
tree | 0eb65aa60c0d0f2989a8b97a2cadaf19032cb1b4 /release | |
parent | 9316cb33d8290e43833363c423c95ced563d7b58 (diff) |
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 8 |
1 files changed, 4 insertions, 4 deletions
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") |