Fix: Ensure world nodes have topology cache for Hydra

Methods like directly_linked_links require a tree topology cache to be there.

Pull Request: https://projects.blender.org/blender/blender/pulls/143670
This commit is contained in:
илья _
2025-07-31 19:49:15 +02:00
committed by Brecht Van Lommel
parent cedd7edd29
commit b4a355b30d

View File

@@ -53,6 +53,8 @@ void WorldData::init()
pxr::GfVec3f color(1.0f, 1.0f, 1.0f);
ID_LOG("%s", world->id.name);
world->nodetree->ensure_topology_cache();
/* TODO: Create nodes parsing system */
bNode *output_node = ntreeShaderOutputNode(world->nodetree, SHD_OUTPUT_ALL);
if (!output_node) {