[Bf-blender-cvs] [8ec74106f83] blender2.8: Fix single column UI: grey out B-Bone properties when not a B-Bone.

Alexander Gavrilov noreply at git.blender.org
Thu Aug 23 21:40:09 CEST 2018


Commit: 8ec74106f83f02d170facb75868783ccae5a222f
Author: Alexander Gavrilov
Date:   Thu Aug 23 22:37:30 2018 +0300
Branches: blender2.8
https://developer.blender.org/rB8ec74106f83f02d170facb75868783ccae5a222f

Fix single column UI: grey out B-Bone properties when not a B-Bone.

There was a mistake when the UI was converted to the new layout style.

===================================================================

M	release/scripts/startup/bl_ui/properties_data_bone.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py
index 6d364ee6539..3fc0c66b0b4 100644
--- a/release/scripts/startup/bl_ui/properties_data_bone.py
+++ b/release/scripts/startup/bl_ui/properties_data_bone.py
@@ -145,38 +145,38 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
 
         layout.prop(bone, "bbone_segments", text="Segments")
 
-        col = layout.column()
-        col.active = bone.bbone_segments > 1
+        topcol = layout.column()
+        topcol.active = bone.bbone_segments > 1
 
-        col = layout.column(align=True)
+        col = topcol.column(align=True)
         col.prop(bbone, "bbone_curveinx", text="Curve In X")
         col.prop(bbone, "bbone_curveiny", text="In Y")
 
-        col = layout.column(align=True)
+        col = topcol.column(align=True)
         col.prop(bbone, "bbone_curveoutx", text="Curve Out X")
         col.prop(bbone, "bbone_curveouty", text="Out Y")
 
-        col = layout.column(align=True)
+        col = topcol.column(align=True)
         col.prop(bbone, "bbone_rollin", text="Roll In")
         col.prop(bbone, "bbone_rollout", text="Out")
         col.prop(bone, "use_endroll_as_inroll")
 
-        col = layout.column(align=True)
+        col = topcol.column(align=True)
         col.prop(bbone, "bbone_scalein", text="Scale In")
         col.prop(bbone, "bbone_scaleout", text="Out")
 
-        col = layout.column(align=True)
+        col = topcol.column(align=True)
         col.prop(bbone, "bbone_easein", text="Ease In")
         col.prop(bbone, "bbone_easeout", text="Out")
 
         if pchan:
-            layout.separator()
+            topcol.separator()
 
-            col = layout.column()
+            col = topcol.column()
             col.use_property_split = False
             col.prop(pchan, "use_bbone_custom_handles")
 
-            col = layout.column(align=True)
+            col = topcol.column(align=True)
             col.active = pchan.use_bbone_custom_handles
             col.use_property_split = True



More information about the Bf-blender-cvs mailing list