diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-02 15:05:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-02 15:05:13 +0300 |
commit | 1ca3e1a91dbb4bbd99d8d8275e2a9c8dc0505d1c (patch) | |
tree | c638ed870b8b8838592daa29cb079cf5c49fd0c1 /source/blender/makesrna/intern/rna_workspace.c | |
parent | 08141260ffa619fef1871ccd446b8a59a7b111ca (diff) |
UI: support nested tools in toolbar
Diffstat (limited to 'source/blender/makesrna/intern/rna_workspace.c')
-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 8cf5e3e8eaf..e09f7bcbcc1 100644 --- a/source/blender/makesrna/intern/rna_workspace.c +++ b/source/blender/makesrna/intern/rna_workspace.c @@ -156,6 +156,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_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"); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + prop = RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "transform_orientations", NULL); RNA_def_property_struct_type(prop, "TransformOrientation"); |