t3du - Set / Get World Nodes

This commit is contained in:
2025-06-10 18:55:35 +00:00
parent ef8b3a99ab
commit d04874e0b3

View File

@ -47,11 +47,20 @@ def build():
with write_probes.setup_envmap_render():
for scene in bpy.data.scenes:
world = scene.world
#for scene in bpy.data.scenes:
for world in bpy.data.worlds:
#world = scene.world
# Only export worlds from enabled scenes and only once per world
if scene.lnx_export and world is not None and world not in worlds:
assigned = False;
for scene in bpy.data.scenes:
if scene.lnx_export and scene.world is not None:
if scene.world.name == world.name:
assigned = True;
break;
#if scene.lnx_export and world is not None and world not in worlds:
# Only export worlds from enabled scenes and with fake users
if (world.use_fake_user and world.name != 'Lnx') or assigned:
worlds.append(world)
world.lnx_envtex_name = ''