Nodes: Forward compatibility for World

Implement forward compatibility for World by always writing
`use_nodes=true` when saving blend files.

This was missed in #142342

Pull Request: https://projects.blender.org/blender/blender/pulls/146628
This commit is contained in:
Habib Gahbiche
2025-09-24 14:49:47 +02:00
parent 5462d90fa8
commit b33250f799

View File

@@ -149,6 +149,9 @@ static void world_blend_write(BlendWriter *writer, ID *id, const void *id_addres
BLI_listbase_clear(&wrld->gpumaterial);
wrld->last_update = 0;
/* Set deprecated #use_nodes for forward compatibility. */
wrld->use_nodes = true;
/* write LibData */
BLO_write_id_struct(writer, World, id_address, &wrld->id);
BKE_id_blend_write(writer, &wrld->id);