From 6e76a35f07bb7e5c277347175804bb359b8f0477 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Apr 2018 14:30:09 +0200 Subject: Tool System: support data-blocks in tools Needed so tools can set the active brush. --- source/blender/makesdna/DNA_workspace_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_workspace_types.h') diff --git a/source/blender/makesdna/DNA_workspace_types.h b/source/blender/makesdna/DNA_workspace_types.h index 1f1c69ad083..4cc3929b4ea 100644 --- a/source/blender/makesdna/DNA_workspace_types.h +++ b/source/blender/makesdna/DNA_workspace_types.h @@ -54,9 +54,11 @@ #define USE_WORKSPACE_TOOL typedef struct bToolDef { - /* either the keymap AND/OR manipulator_group must be defined. */ + /* One of these must be defined. */ char keymap[64]; char manipulator_group[64]; + char data_block[64]; + int spacetype; /* index when a tool is a member of a group */ int index; -- cgit v1.2.3