Blender Git Loki

Git Commits -> Revision 2cc5af9

Revision 2cc5af9 by Campbell Barton (master)
March 11, 2021, 13:40 (GMT)
Fix T86431: Keep memory location of the window manager on file load

Keep the pointer location from the initial window-manager
between file load operations.

This is needed as the Python API may hold references to keymaps for e.g.
which are transferred to the newly loaded window manager,
without their `PointerRNA.owner_id` fields being updated.

Since there is only ever one window manager, keep the memory at the same location so the Python ID pointers stay valid.

Reviewed By: mont29

Ref D10690

Commit Details:

Full Hash: 2cc5af9c553cfc00b7d4616445ad954597a92d94
Parent Commit: 2cdebf2
Lines Changed: +44, -14

3 Modified Paths:

/source/blender/blenkernel/BKE_lib_remap.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/lib_remap.c (+18, -14) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+24, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021