Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-08-23 22:37:30 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-08-23 22:37:30 +0300
commit8ec74106f83f02d170facb75868783ccae5a222f (patch)
treea59ae77bb3375ff7a3f6ccfc1b7ab020089878af /release/scripts/startup/bl_ui/properties_data_bone.py
parent34ebf6f82c4a375feb3c5260597042ff41adc7b5 (diff)
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_bone.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_bone.py20
1 files changed, 10 insertions, 10 deletions
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