[Bf-blender-cvs] [5a6dfb7571c] master: Fix T78017: Broken layout in "View Lock" panel with armature
Hans Goudey
noreply at git.blender.org
Tue Jan 5 00:33:48 CET 2021
Commit: 5a6dfb7571c8db18dd7056c871ba1a651384a336
Author: Hans Goudey
Date: Mon Jan 4 17:32:22 2021 -0600
Branches: master
https://developer.blender.org/rB5a6dfb7571c8db18dd7056c871ba1a651384a336
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.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
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")
More information about the Bf-blender-cvs
mailing list