moisesjpelaez - General Fixes

This commit is contained in:
2025-09-19 18:54:44 +00:00
parent 71e57026e1
commit 6fc446e7a9

View File

@ -118,7 +118,8 @@ def render_envmap(target_dir: str, world: bpy.types.World) -> str:
scene = bpy.data.scenes['_lnx_envmap_render'] scene = bpy.data.scenes['_lnx_envmap_render']
scene.world = world scene.world = world
image_name = f'env_{lnx.utils.safesrc(world.name)}.{ENVMAP_EXT}' world_name = lnx.utils.asset_name(world) if world.library else world.name
image_name = f'env_{lnx.utils.safesrc(world_name)}.{ENVMAP_EXT}'
render_path = os.path.join(target_dir, image_name) render_path = os.path.join(target_dir, image_name)
scene.render.filepath = render_path scene.render.filepath = render_path