diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-17 21:35:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-17 21:35:46 +0300 |
commit | 50e3af88992c96cf3bb8d7953e558aa0429f1872 (patch) | |
tree | 594d6236381841ee931e5667357fd369296a8da2 /source/blender/makesrna/intern/rna_workspace.c | |
parent | b0c8d35142c3a0fa6f468efff41c44ce9ae1d1d0 (diff) |
RNA: quiet warning
Harmless but annoying.
Diffstat (limited to 'source/blender/makesrna/intern/rna_workspace.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_workspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |