mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Fix classmethod referring to self instead of cls
This commit is contained in:
parent
1933a529ac
commit
fedf9b4e33
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue