diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-10 00:26:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-10 00:26:28 +0300 |
commit | c1394c89a726f5ee0319d5f154bfc869d25d7f6e (patch) | |
tree | c7a11712a5f8c1386202f993ef1b3475dd7416b2 | |
parent | 89491d67d96f0bf104e65d88fbc39fee9ebaced6 (diff) |
UI: Fix incorrect inactive status for curve properties
The "Geometry start & End" panel was grayed when using an object
to create the curve bevel. It should only be grayed out in this case
when no object is chosen in the "Bevel" subpanel.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_curve.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index 9f9261bde92..9ae7f8f8e6c 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -230,8 +230,8 @@ class DATA_PT_geometry_curve_start_end(CurveButtonsPanelCurve, Panel): col = layout.column() col.active = ( - ((curve.bevel_depth > 0.0) or (curve.extrude > 0.0)) and - (curve.bevel_mode != 'OBJECT') + ((curve.bevel_depth > 0.0) or (curve.extrude > 0.0)) or + ((curve.bevel_mode == 'OBJECT') and curve.bevel_object is not None) ) sub = col.column(align=True) sub.prop(curve, "bevel_factor_start", text="Factor Start") |