Error in commit that made notifier calls easier; forgot to add the
check for global vs local notifiers.
This commit is contained in:
2008-12-03 15:05:06 +00:00
parent 444e1d198e
commit 1c81b97481

View File

@@ -100,7 +100,16 @@ void WM_event_add_notifier(bContext *C, int type, int value, void *data)
BLI_addtail(&C->wm->queue, note);
note->window= C->window;
if(C->region) note->swinid= C->region->swinid;
/* catch global notifications here */
switch (type) {
case WM_NOTE_WINDOW_REDRAW:
case WM_NOTE_SCREEN_CHANGED:
break;
default:
if(C->region) note->swinid= C->region->swinid;
}
note->type= type;
note->value= value;
note->data= data;