Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-10-21 08:19:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-21 08:39:35 +0300
commite1e7b6db2e01d8ea2219d410200a8856d4597222 (patch)
tree521b1c81d53cc05c923e10f9ad8a3bb1887e899d /source/blender/makesrna/intern/rna_workspace.c
parentb66728d63deee0fc9ef517405466d1139871251d (diff)
WM: Initial Tool System
The tool-system it's self is primitive and may be changed. Adding to 2.8 to develop operators and manipulators as tools. Currently this is exposed in the toolbar, collapsed by default. Work-flow remains unchanged if you don't change the active tool. Placing the 3D cursor is now a Click instead of a Press event, this allows tweak events to be mapped to tools such as border select, keeping click for 3D cursor placement when selection tools are set.
Diffstat (limited to 'source/blender/makesrna/intern/rna_workspace.c')
-rw-r--r--source/blender/makesrna/intern/rna_workspace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace.c b/source/blender/makesrna/intern/rna_workspace.c
index 4e04581a0a8..8cf5e3e8eaf 100644
--- a/source/blender/makesrna/intern/rna_workspace.c
+++ b/source/blender/makesrna/intern/rna_workspace.c
@@ -146,6 +146,16 @@ static void rna_def_workspace(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Mode", "Object interaction mode");
#endif
+ prop = RNA_def_property(srna, "tool_keymap", PROP_STRING, PROP_NONE);
+ RNA_def_property_string_sdna(prop, NULL, "tool.keymap");
+ RNA_def_property_ui_text(prop, "Active Tool", "Currently active tool keymap");
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+
+ prop = RNA_def_property(srna, "tool_manipulator_group", PROP_STRING, PROP_NONE);
+ RNA_def_property_string_sdna(prop, NULL, "tool.manipulator_group");
+ 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, "orientations", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "transform_orientations", NULL);
RNA_def_property_struct_type(prop, "TransformOrientation");