[Bf-blender-cvs] [c1394c89a72] master: UI: Fix incorrect inactive status for curve properties
Hans Goudey
noreply at git.blender.org
Fri Oct 9 23:26:41 CEST 2020
Commit: c1394c89a726f5ee0319d5f154bfc869d25d7f6e
Author: Hans Goudey
Date: Fri Oct 9 16:26:28 2020 -0500
Branches: master
https://developer.blender.org/rBc1394c89a726f5ee0319d5f154bfc869d25d7f6e
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.
===================================================================
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 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")
More information about the Bf-blender-cvs
mailing list