[Bf-blender-cvs] [3bf2a6e3c90] master: Cleanup: use NULL items for the default sample enum
Campbell Barton
noreply at git.blender.org
Thu Feb 3 13:03:06 CET 2022
Commit: 3bf2a6e3c90ea741fb21cd868b49567557ff5306
Author: Campbell Barton
Date: Thu Feb 3 23:02:00 2022 +1100
Branches: master
https://developer.blender.org/rB3bf2a6e3c90ea741fb21cd868b49567557ff5306
Cleanup: use NULL items for the default sample enum
Using this enum quiets a warning when exporting key-maps.
===================================================================
M source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
index 46c2acf112a..1234a56853c 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c
@@ -430,7 +430,7 @@ void PAINT_OT_weight_sample_group(wmOperatorType *ot)
/* Group to use (dynamic enum). */
prop = RNA_def_enum(
- ot->srna, "group", DummyRNA_DEFAULT_items, 0, "Group", "Vertex group to set as active");
+ ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "Vertex group to set as active");
RNA_def_enum_funcs(prop, weight_paint_sample_enum_itemf);
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
ot->prop = prop;
More information about the Bf-blender-cvs
mailing list