2.5
Error in commit that made notifier calls easier; forgot to add the check for global vs local notifiers.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user