Fix T82384: Custom Properties for ShaderNodeTree do not save in blend files.
Not sure why those were excluded, there is no reason not to write ID data itself for embedded IDs...
This commit is contained in:
@@ -174,6 +174,8 @@ static void collection_foreach_id(ID *id, LibraryForeachIDData *data)
|
||||
|
||||
void BKE_collection_blend_write_nolib(BlendWriter *writer, Collection *collection)
|
||||
{
|
||||
BKE_id_blend_write(writer, &collection->id);
|
||||
|
||||
/* Shared function for collection data-blocks and scene master collection. */
|
||||
BKE_previewimg_blend_write(writer, collection->preview);
|
||||
|
||||
@@ -198,7 +200,6 @@ static void collection_blend_write(BlendWriter *writer, ID *id, const void *id_a
|
||||
|
||||
/* write LibData */
|
||||
BLO_write_id_struct(writer, Collection, id_address, &collection->id);
|
||||
BKE_id_blend_write(writer, &collection->id);
|
||||
|
||||
BKE_collection_blend_write_nolib(writer, collection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user