From b465d3fbe7cc919d06266c9119c3bd69f9744048 Mon Sep 17 00:00:00 2001 From: pushfoo <36696816+pushfoo@users.noreply.github.com> Date: Sun, 19 Mar 2023 05:23:31 -0400 Subject: [PATCH] Fix always-unequal expression in BasicSprite.color setter --- arcade/sprite/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arcade/sprite/base.py b/arcade/sprite/base.py index 9562c7745..b76019fdb 100644 --- a/arcade/sprite/base.py +++ b/arcade/sprite/base.py @@ -327,7 +327,7 @@ def color(self) -> RGBA: def color(self, color: RGBA): if len(color) == 4: if ( - self._color == color[0] + self._color[0] == color[0] and self._color[1] == color[1] and self._color[2] == color[2] and self._color[3] == color[3] @@ -336,7 +336,7 @@ def color(self, color: RGBA): self._color = color[0], color[1], color[2], color[3] elif len(color) == 3: if ( - self._color == color[0] + self._color[0] == color[0] and self._color[1] == color[1] and self._color[2] == color[2] ):