From 8ec74106f83f02d170facb75868783ccae5a222f Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 23 Aug 2018 22:37:30 +0300 Subject: 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. --- .../scripts/startup/bl_ui/properties_data_bone.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'release/scripts/startup') 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 -- cgit v1.2.3