mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Refactor parm to parm_template to clarify variable refers to a parm template
This commit is contained in:
parent
a2c5934a1e
commit
e001b2632a
1 changed files with 3 additions and 3 deletions
|
|
@ -339,7 +339,7 @@ def imprint(node, data, update=False):
|
|||
if value is None:
|
||||
continue
|
||||
|
||||
parm = get_template_from_value(key, value)
|
||||
parm_template = get_template_from_value(key, value)
|
||||
|
||||
if key in current_parms:
|
||||
if node.evalParm(key) == data[key]:
|
||||
|
|
@ -348,10 +348,10 @@ def imprint(node, data, update=False):
|
|||
log.debug(f"{key} already exists on {node}")
|
||||
else:
|
||||
log.debug(f"replacing {key}")
|
||||
update_parms.append(parm)
|
||||
update_parms.append(parm_template)
|
||||
continue
|
||||
|
||||
templates.append(parm)
|
||||
templates.append(parm_template)
|
||||
|
||||
parm_group = node.parmTemplateGroup()
|
||||
parm_folder = parm_group.findFolder("Extra")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue