[Bf-blender-cvs] [50e3af88992] blender2.8: RNA: quiet warning
Campbell Barton
noreply at git.blender.org
Thu May 17 20:36:36 CEST 2018
Commit: 50e3af88992c96cf3bb8d7953e558aa0429f1872
Author: Campbell Barton
Date: Thu May 17 20:35:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB50e3af88992c96cf3bb8d7953e558aa0429f1872
RNA: quiet warning
Harmless but annoying.
===================================================================
M source/blender/makesrna/intern/rna_workspace.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_workspace.c b/source/blender/makesrna/intern/rna_workspace.c
index 3c499fbc195..53056c6cc5d 100644
--- a/source/blender/makesrna/intern/rna_workspace.c
+++ b/source/blender/makesrna/intern/rna_workspace.c
@@ -141,7 +141,7 @@ const EnumPropertyItem *rna_WorkSpace_tools_mode_itemf(
case SPACE_IMAGE:
return rna_enum_space_image_mode_items;
}
- return DummyRNA_NULL_items;
+ return DummyRNA_DEFAULT_items;
}
#else /* RNA_RUNTIME */
@@ -283,7 +283,7 @@ static void rna_def_workspace(BlenderRNA *brna)
prop = RNA_def_property(srna, "tools_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "tools_mode");
- RNA_def_property_enum_items(prop, rna_enum_object_mode_items); /* value is placeholder, itemf is used. */
+ RNA_def_property_enum_items(prop, DummyRNA_DEFAULT_items);
RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_WorkSpace_tools_mode_itemf");
RNA_def_property_ui_text(prop, "Active Tool Space", "Tool mode");
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
More information about the Bf-blender-cvs
mailing list