Skip to content

Commit

Permalink
fixed case sensitivity with template files
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-yao91 committed Jun 14, 2024
1 parent f23cc3f commit b21ef9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/utils/base_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ def run_template_sharing_tests(self, rigs_and_templates):
self.addon_name,
'remove_rig_template',
None,
{'template': f'{template_name}_test'}
{'template': f'{template_name.lower()}_test'}
)
for template_file_path in template_file_paths:
self.assertFalse(
Expand Down
2 changes: 1 addition & 1 deletion ue2rigify/core/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def import_zip(zip_file_path, properties):
:param object properties: The property group that contains variables that maintain the addon's correct state.
"""
# get the template name and path from the zip file
template_name = os.path.basename(zip_file_path).replace('.zip', '')
template_name = os.path.basename(zip_file_path).replace('.zip', '').lower()
template_folder_path = os.path.join((Template.RIG_TEMPLATES_PATH()), template_name)

# create the template folder
Expand Down

0 comments on commit b21ef9b

Please sign in to comment.