forked from LeenkxTeam/LNXSDK
moisesjpelaez - General Fixes
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user