Blender Git Commit Log

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 (https://datatracker.ietf.org/doc/html/rfc4122.html).

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
catalogs.

Reviewed By: Severin, jacqueslucke

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

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/uuid.cc (+112, -0) (View)
/source/blender/blenlib/tests/BLI_uuid_test.cc (+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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021