Show warning when scene is missing a world and rp background is set to world
This commit is contained in:
parent
18070621db
commit
93dc0d248b
|
@ -1950,8 +1950,9 @@ class ArmoryExporter:
|
|||
self.output['tilesheet_datas'].append(o)
|
||||
|
||||
def export_world(self):
|
||||
"""Exports the world of the scene."""
|
||||
"""Exports the world of the current scene."""
|
||||
world = self.scene.world
|
||||
|
||||
if world is not None:
|
||||
world_name = arm.utils.safestr(world.name)
|
||||
|
||||
|
@ -1962,6 +1963,9 @@ class ArmoryExporter:
|
|||
self.post_export_world(world, out_world)
|
||||
self.output['world_datas'].append(out_world)
|
||||
|
||||
elif arm.utils.get_rp().rp_background == 'World':
|
||||
log.warn(f'Scene "{self.scene.name}" is missing a world, some render targets will not be cleared!')
|
||||
|
||||
def export_objects(self, scene):
|
||||
"""Exports all supported blender objects.
|
||||
|
||||
|
|
Loading…
Reference in a new issue