[Bf-blender-cvs] [1d5b191f9f9] master: UI: Always set curve fill mode inactive for object bevel type
Hans Goudey
noreply at git.blender.org
Sun Sep 20 05:13:34 CEST 2020
Commit: 1d5b191f9f99e0da05ccc99ad61064b6c87a6b7d
Author: Hans Goudey
Date: Sat Sep 19 22:13:23 2020 -0500
Branches: master
https://developer.blender.org/rB1d5b191f9f99e0da05ccc99ad61064b6c87a6b7d
UI: Always set curve fill mode inactive for object bevel type
The bevel type is a more useful check for graying out this property
because its effects will be apparent before choosing an object. Before,
the fill type property would only gray out with a bevel object selected.
===================================================================
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 1329f35d575..083e5470a99 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -118,7 +118,7 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
col.separator()
sub = col.column()
- sub.active = (curve.dimensions == '2D' or (curve.bevel_object is None and curve.dimensions == '3D'))
+ sub.active = (curve.dimensions == '2D' or (curve.bevel_mode != 'OBJECT' and curve.dimensions == '3D'))
sub.prop(curve, "fill_mode")
col.prop(curve, "use_fill_deform")
More information about the Bf-blender-cvs
mailing list