Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4249 from pypeclub/bugfix/creator_item_nequality
Browse files Browse the repository at this point in the history
Publisher: Fix 'CreatorType' not equal for Python 2 DCCs
  • Loading branch information
iLLiCiTiT authored Dec 20, 2022
2 parents 95939fb + fac9dab commit 2b87c73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openpype/tools/publisher/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ def __str__(self):
def __eq__(self, other):
return self.name == str(other)

def __ne__(self, other):
# This is implemented only because of Python 2
return not self == other


class CreatorTypes:
base = CreatorType("base")
Expand Down

0 comments on commit 2b87c73

Please sign in to comment.