Merge pull request #520 from Andrew-Collins/sheet-path-ori-fix

Fix handling of hierarchical branches with a depth >2
This commit is contained in:
Salvador E. Tropea 2023-11-27 08:25:15 -03:00 committed by GitHub
commit 2bc3bdfa54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1649,7 +1649,7 @@ class Sheet(object):
self.sheet = sheet
parent_dir = os.path.dirname(parent_file)
sheet.sheet_path = path_join(parent_obj.sheet_path, self.uuid)
sheet.sheet_path_ori = path_join(parent_obj.sheet_path, self.uuid_ori)
sheet.sheet_path_ori = path_join(parent_obj.sheet_path_ori, self.uuid_ori)
sheet.sheet_path_h = path_join(parent_obj.sheet_path_h, self.name)
parent_obj.sheet_paths[sheet.sheet_path_ori] = sheet
sheet.load(os.path.join(parent_dir, self.file), project, parent_obj)