Tool System: split UI label from tool identifiers
Prepare for exposing tool registration to the Python API. - Generated tools can use their own prefix so naming collisions won't happen between hard coded & generated tools. - Add-on authors can use the add-on name as a prefix. Currently the names match, renaming will happen next.
This commit is contained in:
@@ -54,7 +54,7 @@ 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(
|
||||
struct bToolRef *WM_toolsystem_ref_set_by_id(
|
||||
struct bContext *C, struct WorkSpace *workspace, const bToolKey *tkey,
|
||||
const char *name, bool cycle);
|
||||
|
||||
|
Reference in New Issue
Block a user