Blender Git Commit Log
Git Commits -> Revision 30ef197
Revision 30ef197 by Sybren A. Stüvel (master) September 27, 2021, 08:57 (GMT) |
Kernel: allow unregistering BKE callback functions Introduce `BKE_callback_remove()`, which undoes the effect of `BKE_callback_add()`. It also respects `funcstore->alloc` by freeing the removed `funcstore` when needed. This allows for shorter-lived objects in memory to unregister their callbacks at the end of their lifespan. `BKE_callback_global_finalize()` has been adjusted so that the responsibility "remove a callback" is given to one function only. Reviewed by: campbellbarton Differential Revision: https://developer.blender.org/D12625 |
Commit Details:
Full Hash: 30ef197c7b57e2763f66abf21a4a148826c365f7
Parent Commit: 617954c
Lines Changed: +11, -4