diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-08 23:44:57 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-08 23:48:17 +0300 |
commit | 96f59184078b08995d2e01c165943000859157de (patch) | |
tree | 9021996e8f48873d9c867cf13536da2f52889932 /release/scripts/startup/bl_ui | |
parent | fa27d81937ebed6283f329024951ab6aa82dd2d4 (diff) |
Fix (unreported) UI: useless setting shown for Text data-blocks.
Since we do not have start/end settings for bevel object for Text,
mapping taper to those ends makes no sense here, we can hide that
setting.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_curve.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index e7f9de5dc20..b589f780c24 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -177,9 +177,11 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel): col.prop(curve, "taper_object") - sub = col.column() - sub.active = curve.taper_object is not None - sub.prop(curve, "use_map_taper") + if type(curve) is not TextCurve: + # This setting makes no sense for texts, since we have no control over start/end of the bevel object curve. + sub = col.column() + sub.active = curve.taper_object is not None + sub.prop(curve, "use_map_taper") class DATA_PT_geometry_curve_bevel(CurveButtonsPanelCurve, Panel): |