[Bf-blender-cvs] [96f59184078] master: Fix (unreported) UI: useless setting shown for Text data-blocks.

Bastien Montagne noreply at git.blender.org
Mon Jul 8 22:48:30 CEST 2019


Commit: 96f59184078b08995d2e01c165943000859157de
Author: Bastien Montagne
Date:   Mon Jul 8 22:44:57 2019 +0200
Branches: master
https://developer.blender.org/rB96f59184078b08995d2e01c165943000859157de

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.

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

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

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

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):



More information about the Bf-blender-cvs mailing list