Fix world export when another blend file was opened before
This commit is contained in:
parent
ae07dab862
commit
8afc3c43e3
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue