From 81bf9a41e1d769a52b58836f20f2252f214b927d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 31 May 2018 09:02:43 +0200 Subject: Tool System: Utility to set the tool by name Wrapper for the Python operator. --- source/blender/windowmanager/WM_toolsystem.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/windowmanager/WM_toolsystem.h') diff --git a/source/blender/windowmanager/WM_toolsystem.h b/source/blender/windowmanager/WM_toolsystem.h index 2eb07d68afa..30470e17ed4 100644 --- a/source/blender/windowmanager/WM_toolsystem.h +++ b/source/blender/windowmanager/WM_toolsystem.h @@ -51,6 +51,9 @@ struct bToolRef *WM_toolsystem_ref_find(struct WorkSpace *workspace, const bTool bool WM_toolsystem_ref_ensure( struct WorkSpace *workspace, const bToolKey *tkey, struct bToolRef **r_tref); +struct bToolRef *WM_toolsystem_ref_set_by_name( + bContext *C, struct WorkSpace *workspace, const bToolKey *tkey, + const char *name, bool cycle); struct bToolRef_Runtime *WM_toolsystem_runtime_from_context(struct bContext *C); struct bToolRef_Runtime *WM_toolsystem_runtime_find(struct WorkSpace *workspace, const bToolKey *tkey); -- cgit v1.2.3