mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Fix family test in validate_write_legacy to work with stillImage
This commit is contained in:
parent
fb2c0d268c
commit
bde7d988a2
1 changed files with 3 additions and 2 deletions
|
|
@ -34,9 +34,8 @@ class ValidateWriteLegacy(pyblish.api.InstancePlugin):
|
|||
# test if render in family test knob
|
||||
# and only one item should be available
|
||||
assert len(family_test) == 1, msg + " > More avalon attributes"
|
||||
assert "render" in node[family_test[0]].value(), msg + \
|
||||
assert "render" in node[family_test[0]].value() or "still" in node[family_test[0]].value(), msg + \
|
||||
" > Not correct family"
|
||||
|
||||
# test if `file` knob in node, this way old
|
||||
# non-group-node write could be detected
|
||||
assert "file" not in node.knobs(), msg + \
|
||||
|
|
@ -74,6 +73,8 @@ class ValidateWriteLegacy(pyblish.api.InstancePlugin):
|
|||
Create_name = "CreateWriteRender"
|
||||
elif family == "prerender":
|
||||
Create_name = "CreateWritePrerender"
|
||||
elif family == "still":
|
||||
Create_name = "CreateWriteStill"
|
||||
|
||||
# get appropriate plugin class
|
||||
creator_plugin = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue