Blender Git Commit Log

Git Commits -> Revision dc8b31a

Revision dc8b31a by Jacques Lucke (master)
January 26, 2021, 11:05 (GMT)
Fix T84935: boolean custom data layers not saved correctly

The issue was that boolean custom data layers were not written to files,
because the dna struct name `bool` does not exist. Adding a struct that
just contains a `bool/uint8_t` does not seem to be possible, it looks like
the minimum dna struct size is 4 bytes.

The proposed solution has two parts:

1. Write the custom data layer using `BLO_write_raw` instead of
`BLO_write_struct_array_by_name`.
2. When loading a file, reinitialize any custom data layer that was
not saved correctly (this is just a fix for existing files).

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

Commit Details:

Full Hash: dc8b31af578bfcf9f77dbce6d7b7da1006a3c8c1
Parent Commit: 548d8a3
Lines Changed: +14, -0

1 Modified Path:

/source/blender/blenkernel/intern/customdata.c (+14, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021