fix validation types

This commit is contained in:
Ondřej Samohel 2021-05-28 18:18:22 +02:00 committed by GitHub
parent 1cb2b660be
commit 65723400dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,7 +243,10 @@ class ValidateRenderSettings(pyblish.api.InstancePlugin):
"Cannot get value of {}.{}".format(
node, attribute_name))
else:
if value != render_value:
# compare values as strings to get around various
# datatypes possible in Settings and Render
# Settings
if str(value) != str(render_value):
invalid = True
cls.log.error(
("Invalid value {} set on {}.{}. "