Correct UI active state w/ bevel-factor

D1838 by @JacquesLucke
This commit is contained in:
Campbell Barton 2016-03-09 19:30:12 +11:00 committed by Sergey Sharybin
parent e511c7a34e
commit f0e52274ad
1 changed files with 4 additions and 1 deletions

View File

@ -188,7 +188,10 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
row.label(text="Bevel Factor:")
col = layout.column()
col.active = (curve.bevel_depth > 0 or curve.bevel_object is not None)
col.active = (
(curve.bevel_depth > 0.0) or
(curve.extrude > 0.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")