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:
authorCampbell Barton <campbell@blender.org>2022-08-27 05:16:13 +0300
committerCampbell Barton <campbell@blender.org>2022-08-27 05:28:18 +0300
commit578dff786362ba0d1426d1d3d15d579886c0f4fd (patch)
tree595d3c484ca859504903717cb1bc7c731af532ee /source/blender/windowmanager/WM_types.h
parent955032ffb0c5ca671b24d04bd45cc0f6604d66c6 (diff)
Fix assertion when notifiers weren't removed from the notifier queue set
Since [0] notifiers were cleared and left in the queue, while harmless it meant the call to remove the notifier from the set was redundant. Now set aside a category to tag notifiers as having been cleared and skip them entirely. [0]: 0aaff9a07d3bdf8588cef15d502aeb4fdab22e5e
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index 9d9e0fe8fee..6526b7bec0e 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -321,6 +321,7 @@ typedef struct wmNotifier {
/* category */
#define NOTE_CATEGORY 0xFF000000
+#define NOTE_CATEGORY_TAG_CLEARED NOTE_CATEGORY
#define NC_WM (1 << 24)
#define NC_WINDOW (2 << 24)
#define NC_WORKSPACE (3 << 24)