diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 15:30:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 15:30:09 +0300 |
commit | 6e76a35f07bb7e5c277347175804bb359b8f0477 (patch) | |
tree | 08b3ba9ddf39e7aadec5c838ecca9c2506e31756 /source/blender/makesrna | |
parent | f4ba7667dc34edc3fbd1118f8f0dbe818a8e7d43 (diff) |
Tool System: support data-blocks in tools
Needed so tools can set the active brush.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_workspace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace.c b/source/blender/makesrna/intern/rna_workspace.c index 47c8254b015..b82ca145f5f 100644 --- a/source/blender/makesrna/intern/rna_workspace.c +++ b/source/blender/makesrna/intern/rna_workspace.c @@ -187,6 +187,11 @@ static void rna_def_workspace(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Active Tool", "Currently active tool manipulator"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); + prop = RNA_def_property(srna, "tool_data_block", PROP_STRING, PROP_NONE); + RNA_def_property_string_sdna(prop, NULL, "tool.data_block"); + RNA_def_property_ui_text(prop, "Active Tool", "Currently active data-block"); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + prop = RNA_def_property(srna, "tool_index", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "tool.index"); RNA_def_property_ui_text(prop, "Active Tool Index", "Tool group index"); |