forked from LeenkxTeam/LNXSDK
t3du - Set / Get World Nodes
This commit is contained in:
@ -47,11 +47,20 @@ def build():
|
|||||||
|
|
||||||
with write_probes.setup_envmap_render():
|
with write_probes.setup_envmap_render():
|
||||||
|
|
||||||
for scene in bpy.data.scenes:
|
#for scene in bpy.data.scenes:
|
||||||
world = scene.world
|
for world in bpy.data.worlds:
|
||||||
|
#world = scene.world
|
||||||
|
|
||||||
# Only export worlds from enabled scenes and only once per world
|
assigned = False;
|
||||||
if scene.lnx_export and world is not None and world not in worlds:
|
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)
|
worlds.append(world)
|
||||||
|
|
||||||
world.lnx_envtex_name = ''
|
world.lnx_envtex_name = ''
|
||||||
|
Reference in New Issue
Block a user