diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-04 13:11:51 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-04 13:12:20 +0400 |
commit | ef801eb1ffade52dfb597f79b98b67d7ad67f0b4 (patch) | |
tree | 9d10e771853d0284f5c2855ac140eb89a3238042 /release/scripts/startup/bl_ui | |
parent | 944e576717c1b65f1b3d7806772a08686fe04e74 (diff) |
Fix T40941: Bevel factor in Text
Bevel factor is not supported by text, hide it from the interface.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_curve.py | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index ecf9e5cab90..7cfdcccfb94 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -182,26 +182,27 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel): col.label(text="Bevel Object:") col.prop(curve, "bevel_object", text="") - col = layout.column(align=True) - row = col.row() - row.label(text="Bevel Factor:") + if type(curve) is not TextCurve: + col = layout.column(align=True) + row = col.row() + row.label(text="Bevel Factor:") + + col = layout.column() + col.active = (curve.bevel_depth > 0 or curve.bevel_object is not None) + row = col.row(align=True) + row.prop(curve, "bevel_factor_mapping_start", text="") + row.prop(curve, "bevel_factor_start", text="Start") + row = col.row(align=True) + row.prop(curve, "bevel_factor_mapping_end", text="") + row.prop(curve, "bevel_factor_end", text="End") - col = layout.column() - col.active = (curve.bevel_depth > 0 or curve.bevel_object is not None) - row = col.row(align=True) - row.prop(curve, "bevel_factor_mapping_start", text="") - row.prop(curve, "bevel_factor_start", text="Start") - row = col.row(align=True) - row.prop(curve, "bevel_factor_mapping_end", text="") - row.prop(curve, "bevel_factor_end", text="End") - - row = layout.row() - sub = row.row() - sub.active = curve.taper_object is not None - sub.prop(curve, "use_map_taper") - sub = row.row() - sub.active = curve.bevel_object is not None - sub.prop(curve, "use_fill_caps") + row = layout.row() + sub = row.row() + sub.active = curve.taper_object is not None + sub.prop(curve, "use_map_taper") + sub = row.row() + sub.active = curve.bevel_object is not None + sub.prop(curve, "use_fill_caps") class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel): |