Fix world export when another blend file was opened before

This commit is contained in:
Moritz Brückner 2020-07-06 16:58:52 +02:00
parent ae07dab862
commit 8afc3c43e3

View file

@ -15,8 +15,12 @@ shader_datas = []
def build():
global shader_datas
bpy.data.worlds['Arm'].world_defs = ''
worlds = []
shader_datas = []
for scene in bpy.data.scenes:
# Only export worlds from enabled scenes
if scene.arm_export and scene.world is not None and scene.world not in worlds: