Core: Fix broken CustomData IO with Autosave files #106648

Merged
Joseph Eagar merged 5 commits from temp-autosave-bug into main 2023-04-07 02:02:31 +02:00

5 Commits

Author SHA1 Message Date
Joseph Eagar 1230da11a8 Remove another header 2023-04-06 16:53:41 -07:00
Joseph Eagar 65354f7993 Remove excess headers. 2023-04-06 16:52:27 -07:00
Joseph Eagar a5b8f4b5bc Fix crash in legacy sharp face code instead of adding
a CD_MPOLY layer.
2023-04-06 16:49:06 -07:00
Joseph Eagar eff9f664e6 Improve comment wording. 2023-04-06 16:40:12 -07:00
Joseph Eagar 182d83f281 Core: Fix broken CustomData IO with Autosave files
Autosave files are created from memfile undo, which
doesn't save legacy mesh data. This leads to a crash
on file load.

In addition the mesh code can now add CustomData
layers when saving files, which did not work if
the original domain had no layers.  In that case
CustomData.layers is NULL and DNA has nothing to
key off of when loading the file later.
2023-04-06 16:20:21 -07:00