diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-30 18:36:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-30 18:57:51 +0300 |
commit | 68c2f7a2d06fa1146f862e4f0959d9aeb60d7456 (patch) | |
tree | c95daab71eb127590af9ddc04070d57edb2cecfb /source/blender/windowmanager/intern/wm_operator_type.c | |
parent | 6a6ac502f2612f37c294692cee87ccf6875b2eb5 (diff) |
Revert "Fix T58683: Reload Scripts breaks toolbar button formatting."
This reverts commit ba90d2efa58fe23a87f98e014bcc02ea951a6a49.
This can be resolved without adding a boolean to all operator types
to check if it's "WM_OT_tool_set_by_id".
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_type.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operator_type.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_type.c b/source/blender/windowmanager/intern/wm_operator_type.c index 394efc856e3..e3fe8892515 100644 --- a/source/blender/windowmanager/intern/wm_operator_type.c +++ b/source/blender/windowmanager/intern/wm_operator_type.c @@ -20,8 +20,6 @@ * Operator Registry. */ -#include <string.h> - #include "MEM_guardedalloc.h" #include "CLG_log.h" @@ -129,9 +127,6 @@ static void wm_operatortype_append__end(wmOperatorType *ot) ot->srna, ot->name, ot->description ? ot->description : UNDOCUMENTED_OPERATOR_TIP); RNA_def_struct_identifier(&BLENDER_RNA, ot->srna, ot->idname); - /* A hack for efficiently detecting buttons with this specific operator. */ - ot->is_tool_button = STREQ(ot->idname, "WM_OT_tool_set_by_id"); - BLI_ghash_insert(global_ops_hash, (void *)ot->idname, ot); } |