Blender Git Loki

Git Commits -> Revision 51c1c1c

Revision 51c1c1c by Bastien Montagne (master)
October 29, 2021, 09:32 (GMT)
Fix potential early-return in WM foreach_id process.

Add a function to check if iteration over ID usages should stop (using
internal `IDWALK_STOP` status flag).

Use it in `BKE_LIB_FOREACHID_PROCESS_` macros, and in
`window_manager_foreach_id` to handle properly the active workspace case
(previous code could skip the call to `BKE_workspace_active_set` in case
iteration over ID usages was stopped by callback on that specific ID
usage).

Part of T90922: Fix return policy inconsistency in `scene_foreach_id`.

Commit Details:

Full Hash: 51c1c1cd938f990333b09d89fb063bb28864b302
Parent Commit: eae5964
Lines Changed: +17, -3

3 Modified Paths:

/source/blender/blenkernel/BKE_lib_query.h (+5, -2) (Diff)
/source/blender/blenkernel/intern/lib_query.c (+7, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021