mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Fix REN-57: Ignore VRayTranslator Settings validator when instances are off
This commit is contained in:
parent
7fcb074351
commit
16c5015faa
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ class ValidateVRayTranslatorEnabled(pyblish.api.ContextPlugin):
|
|||
cls.log.info("No VRay Scene instances found, skipping..")
|
||||
return
|
||||
|
||||
# Ignore if no VRayScenes are enabled for publishing
|
||||
if not any(i.data.get("publish", True) for i in vrayscene_instances):
|
||||
cls.log.info("VRay Scene instances are disabled, skipping..")
|
||||
return
|
||||
|
||||
# Get vraySettings node
|
||||
vray_settings = cmds.ls(type="VRaySettingsNode")
|
||||
assert vray_settings, "Please ensure a VRay Settings Node is present"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue