mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix adding 'root' key to format data
This commit is contained in:
parent
f66e653c24
commit
ed526947eb
1 changed files with 3 additions and 2 deletions
|
|
@ -726,10 +726,11 @@ class AnatomyTemplates(TemplatesDict):
|
|||
return output
|
||||
|
||||
def format(self, data, strict=True):
|
||||
copy_data = copy.deepcopy(data)
|
||||
roots = self.roots
|
||||
if roots:
|
||||
data["root"] = roots
|
||||
result = super(AnatomyTemplates, self).format(data)
|
||||
copy_data["root"] = roots
|
||||
result = super(AnatomyTemplates, self).format(copy_data)
|
||||
result.strict = strict
|
||||
return result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue