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.
This commit is contained in:
Hans Goudey 2021-01-04 17:32:22 -06:00
parent 9316cb33d8
commit 5a6dfb7571
Notes: blender-bot 2023-02-14 10:48:33 +01:00
Referenced by issue #78017, UI Missing subcol when lock view bone
1 changed files with 4 additions and 4 deletions

View File

@ -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")