forked from LeenkxTeam/LNXSDK
merge upstream
This commit is contained in:
@ -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 = ''
|
||||
|
Reference in New Issue
Block a user