Skip to content

Commit

Permalink
changed compressed_models_folder -> models_compressed_folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokepetter committed Nov 12, 2024
1 parent 349a4b1 commit 3a0f8c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ursina/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def clear(self, regenerate=True):
if regenerate:
self.generate()

def save(self, name='', folder:Path=Func(getattr, application, 'compressed_models_folder'), flip_faces=False, vertex_decimal_limit=5, color_decimal_limit=4):
def save(self, name='', folder:Path=Func(getattr, application, 'models_compressed_folder'), flip_faces=False, vertex_decimal_limit=5, color_decimal_limit=4):
if callable(folder):
folder = folder()
if not folder.exists():
Expand Down
4 changes: 2 additions & 2 deletions ursina/mesh_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_blender(blend_file): # try to get a matching blender version in case
return application.blender_paths['default']


def blend_to_obj(blend_file:Path, out_folder=Func(getattr, application, 'compressed_models_folder'), export_mtl=True):
def blend_to_obj(blend_file:Path, out_folder=Func(getattr, application, 'models_compressed_folder'), export_mtl=True):
if callable(out_folder):
out_folder = out_folder()

Expand Down Expand Up @@ -459,7 +459,7 @@ def blend_to_obj_fast(model_name=None, write_to_disk=False):

return file_content

def ursina_mesh_to_obj(mesh, name='', out_path=Func(getattr, application, 'compressed_models_folder'), max_decimals=5, flip_faces=True):
def ursina_mesh_to_obj(mesh, name='', out_path=Func(getattr, application, 'models_compressed_folder'), max_decimals=5, flip_faces=True):
if callable(out_path):
out_path = out_path()

Expand Down

0 comments on commit 3a0f8c0

Please sign in to comment.