Skip to content

Commit

Permalink
oops wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntRanch authored Oct 29, 2023
1 parent 1840968 commit 2c77ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ursina/mesh_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def load_model(name, path=application.asset_folder, file_types=('.bam', '.ursina
application.blender_paths['default'] = blender_exec


def load_blender_scene(name, path=application.asset_folder, reload=False, skip_hidden=True, models_only=False, uvs=True, vertex_colors=True, normals=True, decimals=4):
def load_blender_scene(name, path=application.asset_folder, reload=False, skip_hidden=True, models_only=False, uvs=True, vertex_colors=True, normals=True, smooth_normals=False, decimals=4):
scenes_folder = Path(application.asset_folder / 'scenes')
if not scenes_folder.exists():
scenes_folder.mkdir()
Expand All @@ -155,6 +155,7 @@ def load_blender_scene(name, path=application.asset_folder, reload=False, skip_h
'--models_only' if models_only else '',
'--uvs' if uvs else '',
'--normals' if normals else '',
'--smooth_normals' if smooth_normals else '',
'--vertex_colors' if vertex_colors else '',
f'--decimals={decimals}',
]
Expand Down

0 comments on commit 2c77ce2

Please sign in to comment.