Fix workfile path validation for certain nodes that come with expression on string parms by default

This commit is contained in:
Roy Nieterau 2024-05-20 07:52:48 +02:00
parent ebb6475714
commit c1995646d2

View file

@ -69,6 +69,12 @@ class ValidateWorkfilePaths(
if param.node().type().name() not in cls.node_types:
continue
if param.keyframes():
# Calling `.unexpandedString()` below fails if param has
# keyframes - so for now we will skip those params. These are
# e.g. present in `filecache` nodes.
continue
if any(
v for v in cls.prohibited_vars
if v in param.unexpandedString()):