Skip to content

Commit

Permalink
fixed small issue with sprite size property
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonMoffon authored Sep 15, 2024
1 parent 851821b commit 0e8403a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arcade/sprite/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def size(self, new_value: Point2):
if width != self._width or height != self._height:
texture_width, texture_height = self._texture.size
self._scale = width / texture_width, height / texture_height
self._hit_box.scale = self._scale
self._width = width
self._height = height

Expand Down

0 comments on commit 0e8403a

Please sign in to comment.