mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
add default value for filepath, add one more return
This commit is contained in:
parent
4e3d15fb4b
commit
a8d3591292
1 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ class CollectStagingDirsForCleaningUp(pyblish.api.InstancePlugin,
|
|||
|
||||
# Get sop path
|
||||
node_type = node.type().name()
|
||||
filepath = None
|
||||
if node_type == "geometry":
|
||||
filepath = node.evalParm("sopoutput")
|
||||
|
||||
|
|
@ -93,6 +94,7 @@ class CollectStagingDirsForCleaningUp(pyblish.api.InstancePlugin,
|
|||
"ROP node type '{}' is not supported for cleaning up."
|
||||
.format(node_type)
|
||||
)
|
||||
return
|
||||
|
||||
if not filepath:
|
||||
self.log.warning("No filepath value to collect.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue