From fedf9b4e3303ec7a49c3ce90bb61d2b93a827876 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 20 Feb 2018 16:25:53 +0100 Subject: [PATCH] Fix classmethod referring to self instead of cls --- .../plugins/maya/publish/validate_yetirig_cache_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colorbleed/plugins/maya/publish/validate_yetirig_cache_state.py b/colorbleed/plugins/maya/publish/validate_yetirig_cache_state.py index 55afcf5c6f..2c4d4dbc72 100644 --- a/colorbleed/plugins/maya/publish/validate_yetirig_cache_state.py +++ b/colorbleed/plugins/maya/publish/validate_yetirig_cache_state.py @@ -50,11 +50,11 @@ class ValidateYetiRigCacheState(pyblish.api.InstancePlugin): return invalid @classmethod - def repair(self, instance): + def repair(cls, instance): """Repair all errors""" # Create set to ensure all nodes only pass once - invalid = self.get_invalid(instance) + invalid = cls.get_invalid(instance) for node in invalid: cmds.setAttr("%s.fileMode" % node, 0) cmds.setAttr("%s.cacheFileName" % node, "", type="string")