We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab5a54 commit 18f4974Copy full SHA for 18f4974
arcade/sprite/base.py
@@ -601,8 +601,7 @@ def texture(self, texture: Texture):
601
)
602
603
self._texture = texture
604
- self._width = texture.width * self._scale[0]
605
- self._height = texture.height * self._scale[1]
+ self._size = texture.size * self._scale
606
self.update_spatial_hash()
607
for sprite_list in self.sprite_lists:
608
sprite_list._update_texture(self)
0 commit comments