hound fixes

This commit is contained in:
Ondřej Samohel 2022-04-26 12:18:12 +02:00
parent 1bfe423285
commit a2b2dfb1ef
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 9 additions and 8 deletions

View file

@ -117,13 +117,14 @@ class ValidateRenderSettings(pyblish.api.InstancePlugin):
cls.log.error("Animation needs to be enabled. Use the same "
"frame for start and end to render single frame")
if renderer != "renderman":
if not prefix.lower().startswith(required_prefix):
invalid = True
cls.log.error(
"Wrong image prefix [ {} ] - doesn't start with: '{}'".format(
prefix, required_prefix)
)
if renderer != "renderman" and not prefix.lower().startswith(
required_prefix):
invalid = True
cls.log.error(
("Wrong image prefix [ {} ] "
" - doesn't start with: '{}'").format(
prefix, required_prefix)
)
if not re.search(cls.R_LAYER_TOKEN, prefix):
invalid = True

View file

@ -858,7 +858,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
}
renderer = self._instance.data["renderer"]
# This hack is here because of how Deadline handles Renderman version.
# it considers everything with `renderman` set as version older than
# Renderman 22, and so if we are using renderman > 21 we need to set