Skip to content

Commit 18f4974

Browse files
committed
Fix texture setter
1 parent 0ab5a54 commit 18f4974

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arcade/sprite/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,7 @@ def texture(self, texture: Texture):
601601
)
602602

603603
self._texture = texture
604-
self._width = texture.width * self._scale[0]
605-
self._height = texture.height * self._scale[1]
604+
self._size = texture.size * self._scale
606605
self.update_spatial_hash()
607606
for sprite_list in self.sprite_lists:
608607
sprite_list._update_texture(self)

0 commit comments

Comments
 (0)