Fix errors being logged to script editor when attribute is not user-defined attribute.

This commit is contained in:
Roy Nieterau 2021-12-30 21:43:47 +01:00
parent b2d6011d21
commit c8da4709fe

View file

@ -164,7 +164,8 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
continue
# Ignore proxy connections.
if cmds.addAttr(plug, query=True, usedAsProxy=True):
if (cmds.addAttr(plug, query=True, exists=True) and
cmds.addAttr(plug, query=True, usedAsProxy=True)):
continue
# Check for incoming connections