File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ def scale(self, new_scale: Point2 | AsFloat):
363363 new_scale = Vec2 (scale_x , scale_y )
364364 self ._hit_box .scale = new_scale
365365 self ._scale = new_scale
366- self ._size = self ._texture .size * new_scale
366+ self ._size = new_scale * self ._texture .size
367367
368368 self .update_spatial_hash ()
369369 for sprite_list in self .sprite_lists :
@@ -601,7 +601,7 @@ def texture(self, texture: Texture):
601601 )
602602
603603 self ._texture = texture
604- self ._size = texture . size * self . _scale
604+ self ._size = self . _scale * texture . size
605605 self .update_spatial_hash ()
606606 for sprite_list in self .sprite_lists :
607607 sprite_list ._update_texture (self )
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ def texture(self, texture: Texture) -> None:
249249 )
250250
251251 self ._texture = texture
252- self ._size = texture . size * self . _scale
252+ self ._size = self . _scale * texture . size
253253
254254 self .update_spatial_hash ()
255255 for sprite_list in self .sprite_lists :
You can’t perform that action at this time.
0 commit comments