RNA: add space_type to tool
authorCampbell Barton <ideasman42@gmail.com>
Wed, 1 Aug 2018 06:02:20 +0000 (16:02 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 1 Aug 2018 06:02:20 +0000 (16:02 +1000)
source/blender/makesrna/intern/rna_workspace.c

index 166d716..88b79e8 100644 (file)
@@ -224,6 +224,12 @@ static void rna_def_workspace_tool(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Index", "");
        RNA_def_property_int_funcs(prop, "rna_WorkspaceTool_index_get", NULL, NULL);
 
+       prop = RNA_def_property(srna, "space_type", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_sdna(prop, NULL, "space_type");
+       RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+       RNA_def_property_enum_items(prop, rna_enum_space_type_items);
+       RNA_def_property_ui_text(prop, "Space Type", "");
+
        RNA_api_workspace_tool(srna);
 }