mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix anatomy result copy
This commit is contained in:
parent
bcaafb479d
commit
a4e371889a
1 changed files with 11 additions and 0 deletions
|
|
@ -369,6 +369,17 @@ class AnatomyTemplateResult(TemplateResult):
|
|||
self.invalid_types
|
||||
)
|
||||
|
||||
def copy(self):
|
||||
tmp = TemplateResult(
|
||||
str(self),
|
||||
self.template,
|
||||
self.solved,
|
||||
self.used_values,
|
||||
self.missing_keys,
|
||||
self.invalid_types
|
||||
)
|
||||
return self.__class__(tmp, self.rootless)
|
||||
|
||||
|
||||
class AnatomyTemplates(TemplatesDict):
|
||||
inner_key_pattern = re.compile(r"(\{@.*?[^{}0]*\})")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue