Blender Git Loki

Git Commits -> Revision e1d7ce0

Revision e1d7ce0 by Sybren A. Stüvel (master)
September 17, 2021, 10:22 (GMT)
Blenlib: introduce a UUID type

Add `BLI_uuid` and `DNA_uuid_types.h` with a UUID implementation
following RFC4122 (

The following features are implemented:
- A struct of 128 bits that can be used in DNA definitions.
- Generation of version 4 UUIDs, that is, purely random ones.
- UUID equality function.
- String to UUID and UUID to string conversion functions that are
compatible with RFC4122.
- C++ stream operator that outputs the UUID as string.

This UUID will be used by the asset system, to uniquely identify asset

Reviewed By: Severin, jacqueslucke

Differential Revision:

Commit Details:

Full Hash: e1d7ce005f9f9ca84befdd531014d498966f27fc
Parent Commit: 1cd20b0
Lines Changed: +367, -0

4 Added Paths:

/source/blender/blenlib/BLI_uuid.h (+67, -0) (View)
/source/blender/blenlib/intern/ (+112, -0) (View)
/source/blender/blenlib/tests/ (+132, -0) (View)
/source/blender/makesdna/DNA_uuid_types.h (+43, -0) (View)

4 Modified Paths:

/source/blender/blenlib/BLI_session_uuid.h (+7, -0) (Diff)
/source/blender/blenlib/CMakeLists.txt (+3, -0) (Diff)
/source/blender/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021