Skip to content

Commit 0e8403a

Browse files
authored
fixed small issue with sprite size property
1 parent 851821b commit 0e8403a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arcade/sprite/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def size(self, new_value: Point2):
198198
if width != self._width or height != self._height:
199199
texture_width, texture_height = self._texture.size
200200
self._scale = width / texture_width, height / texture_height
201+
self._hit_box.scale = self._scale
201202
self._width = width
202203
self._height = height
203204

0 commit comments

Comments
 (0)