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 @@ -250,7 +250,7 @@ def texture(self, texture: Texture) -> None:
250250 )
251251
252252 self ._texture = texture
253- self ._size = texture . size * self . _scale
253+ self ._size = self . _scale * texture . size
254254
255255 self .update_spatial_hash ()
256256 for sprite_list in self .sprite_lists :
You can’t perform that action at this time.
0 commit comments