Fix (unreported) WM 'foreach_id' code skipping `unpinned_scene` pointer.

Previous code would not process that ID pointer in case the
`workspace_hook` pointer was null.
This commit is contained in:
Bastien Montagne 2023-08-17 10:51:58 +02:00
parent 826ebccb42
commit a99cccaff8
1 changed files with 2 additions and 2 deletions

View File

@ -83,10 +83,10 @@ static void window_manager_foreach_id(ID *id, LibraryForeachIDData *data)
if (BKE_lib_query_foreachid_iter_stop(data)) {
return;
}
BKE_LIB_FOREACHID_PROCESS_IDSUPER(data, win->unpinned_scene, IDWALK_CB_NOP);
}
BKE_LIB_FOREACHID_PROCESS_IDSUPER(data, win->unpinned_scene, IDWALK_CB_NOP);
if (BKE_lib_query_foreachid_process_flags_get(data) & IDWALK_INCLUDE_UI) {
LISTBASE_FOREACH (ScrArea *, area, &win->global_areas.areabase) {
BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data,