Skip to content

Commit 248fe7a

Browse files
committed
Fix texture setter
1 parent 5ce1ff0 commit 248fe7a

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
@@ -608,8 +608,7 @@ def texture(self, texture: Texture):
608608
)
609609

610610
self._texture = texture
611-
self._width = texture.width * self._scale[0]
612-
self._height = texture.height * self._scale[1]
611+
self._size = texture.size * self._scale
613612
self.update_spatial_hash()
614613
for sprite_list in self.sprite_lists:
615614
sprite_list._update_texture(self)

0 commit comments

Comments
 (0)