From b21ef9b96d4534f99e906a01f33287f44717bd27 Mon Sep 17 00:00:00 2001 From: Jack Yao Date: Fri, 14 Jun 2024 13:57:18 -0500 Subject: [PATCH] fixed case sensitivity with template files --- tests/utils/base_test_case.py | 2 +- ue2rigify/core/templates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils/base_test_case.py b/tests/utils/base_test_case.py index 7694ed54..4df86dc5 100644 --- a/tests/utils/base_test_case.py +++ b/tests/utils/base_test_case.py @@ -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( diff --git a/ue2rigify/core/templates.py b/ue2rigify/core/templates.py index 5043f790..541aa0c1 100644 --- a/ue2rigify/core/templates.py +++ b/ue2rigify/core/templates.py @@ -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