Skip to content

Commit

Permalink
[core] Node: Do not automatically upgrade unknown nodes in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Oct 4, 2024
1 parent ebcbf9d commit ff8c063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meshroom/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,9 @@ def nodeFactory(nodeDict, name=None, template=False, uidConflict=False):
if not internalFolder and nodeDesc:
logging.warning("No serialized output data: performing automatic upgrade on '{}'".format(name))
node = node.upgrade()
elif template: # If the node comes from a template file and there is a conflict, it should be upgraded anyway
# If the node comes from a template file and there is a conflict, it should be upgraded anyway unless it is
# an "unknown node type" conflict (in which case the upgrade would fail)
elif template and compatibilityIssue is not CompatibilityIssue.UnknownNodeType:
node = node.upgrade()

return node

0 comments on commit ff8c063

Please sign in to comment.