Blender Git Loki

Git Commits -> Revision c43725e

Revision c43725e by Bastien Montagne (master)
March 5, 2020, 15:30 (GMT)
Add an session-wise uuid integer to IDs.

"session-wise" here mean while editing a same .blend file. So creating
or opening a new one will reset the uuid counter. This should avoid any
overflow in practice.

Only IDs added to Main database get an uuid, runtime-only ones are not
affected.

This is intended to provide undo with a way to find IDs across several
'memory realms' (undo speedup project).

No behavior change is expected from this commit itself.

Part of T60695.

Differential Revision: https://developer.blender.org/D7007

Commit Details:

Full Hash: c43725e1891bd8534ac4b668277cddae9762d524
Parent Commit: 88db9a1
Lines Changed: +136, -23

8 Modified Paths:

/source/blender/blenkernel/BKE_lib_id.h (+8, -0) (Diff)
/source/blender/blenkernel/BKE_main_idmap.h (+15, -5) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+31, -0) (Diff)
/source/blender/blenkernel/intern/main_idmap.c (+52, -16) (Diff)
/source/blender/blenloader/intern/readfile.c (+12, -1) (Diff)
/source/blender/blenloader/intern/versioning_250.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+9, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021