forked from bartvdbraak/blender
avoid calling context functions when direct access is possible.
This commit is contained in:
parent
78490c0a7b
commit
9b16b105f1
@ -3184,7 +3184,7 @@ static int screen_animation_step(bContext *C, wmOperator *UNUSED(op), const wmEv
|
||||
sound_seek_scene(bmain, scene);
|
||||
|
||||
/* since we follow drawflags, we can't send notifier but tag regions ourselves */
|
||||
ED_update_for_newframe(CTX_data_main(C), scene, 1);
|
||||
ED_update_for_newframe(bmain, scene, 1);
|
||||
|
||||
for (window = wm->windows.first; window; window = window->next) {
|
||||
for (sa = window->screen->areabase.first; sa; sa = sa->next) {
|
||||
|
@ -274,7 +274,7 @@ void wm_event_do_notifiers(bContext *C)
|
||||
}
|
||||
|
||||
if (note->window == win ||
|
||||
(note->window == NULL && (note->reference == NULL || note->reference == CTX_data_scene(C))))
|
||||
(note->window == NULL && (note->reference == NULL || note->reference == win->screen->scene)))
|
||||
{
|
||||
if (note->category == NC_SCENE) {
|
||||
if (note->data == ND_FRAME)
|
||||
@ -282,7 +282,7 @@ void wm_event_do_notifiers(bContext *C)
|
||||
}
|
||||
}
|
||||
if (ELEM5(note->category, NC_SCENE, NC_OBJECT, NC_GEOM, NC_SCENE, NC_WM)) {
|
||||
ED_info_stats_clear(CTX_data_scene(C));
|
||||
ED_info_stats_clear(win->screen->scene);
|
||||
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_INFO, NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user