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:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-09-29 09:20:56 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-09-29 09:28:02 +0300
commitba90d2efa58fe23a87f98e014bcc02ea951a6a49 (patch)
treeb1c3c245493b5e7ca358108801530926031f60f4 /source/blender/windowmanager/WM_types.h
parent44d042094e21b519b38a3d78761b64bb5ceeb350 (diff)
Fix T58683: Reload Scripts breaks toolbar button formatting.
Assuming it's actually necessary to do this check very efficiently, replace the hack based on caching a pointer, with a different one that caches the string comparison result in the operator object.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index 15ad8cbedc4..0cf8b9c89f6 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -773,6 +773,8 @@ typedef struct wmOperatorType {
/** Flag last for padding */
short flag;
+ /** Is the operator used by tool buttons, hack for fast checking. */
+ bool is_tool_button;
} wmOperatorType;
/**