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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user