diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-18 08:58:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-18 08:58:37 +0300 |
commit | 8b9db543fd9b928867889d19eea4d9b038b316d5 (patch) | |
tree | f0d4b2a99023be0482c37e093d70d2ed49f2a47b /source/blender/makesrna | |
parent | bffa9b801219e069fb62ca24cba989ed1281b2da (diff) |
Tool System: add cursor (currently unused)
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_workspace_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace_api.c b/source/blender/makesrna/intern/rna_workspace_api.c index 4b0e2b5918e..4c6949cc33d 100644 --- a/source/blender/makesrna/intern/rna_workspace_api.c +++ b/source/blender/makesrna/intern/rna_workspace_api.c @@ -35,6 +35,8 @@ #include "DNA_object_types.h" #include "DNA_windowmanager_types.h" +#include "RNA_enum_types.h" /* own include */ + #include "rna_internal.h" /* own include */ #ifdef RNA_RUNTIME @@ -45,6 +47,7 @@ static void rna_WorkspaceTool_setup( bContext *C, const char *name, /* Args for: 'bToolRef_Runtime'. */ + int cursor, const char *keymap, const char *manipulator_group, const char *data_block, @@ -52,6 +55,7 @@ static void rna_WorkspaceTool_setup( { bToolRef_Runtime tref_rt = {0}; + tref_rt.cursor = cursor; STRNCPY(tref_rt.keymap, keymap); STRNCPY(tref_rt.manipulator_group, manipulator_group); STRNCPY(tref_rt.data_block, data_block); @@ -81,6 +85,8 @@ void RNA_api_workspace_tool(StructRNA *srna) RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); /* 'bToolRef_Runtime' */ + parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_items(parm, rna_enum_window_cursor_items); RNA_def_string(func, "keymap", NULL, KMAP_MAX_NAME, "Key Map", ""); RNA_def_string(func, "manipulator_group", NULL, MAX_NAME, "Manipulator Group", ""); RNA_def_string(func, "data_block", NULL, MAX_NAME, "Data Block", ""); |