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 5ce1ff0 commit 248fe7aCopy full SHA for 248fe7a
arcade/sprite/base.py
@@ -608,8 +608,7 @@ def texture(self, texture: Texture):
608
)
609
610
self._texture = texture
611
- self._width = texture.width * self._scale[0]
612
- self._height = texture.height * self._scale[1]
+ self._size = texture.size * self._scale
613
self.update_spatial_hash()
614
for sprite_list in self.sprite_lists:
615
sprite_list._update_texture(self)
0 commit comments