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 @@ -370,7 +370,7 @@ def scale(self, new_scale: Point2 | AsFloat):
370370 new_scale = Vec2 (scale_x , scale_y )
371371 self ._hit_box .scale = new_scale
372372 self ._scale = new_scale
373- self ._size = self ._texture .size * new_scale
373+ self ._size = new_scale * self ._texture .size
374374
375375 self .update_spatial_hash ()
376376 for sprite_list in self .sprite_lists :
@@ -608,7 +608,7 @@ def texture(self, texture: Texture):
608608 )
609609
610610 self ._texture = texture
611- self ._size = texture . size * self . _scale
611+ self ._size = self . _scale * texture . size
612612 self .update_spatial_hash ()
613613 for sprite_list in self .sprite_lists :
614614 sprite_list ._update_texture (self )
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def texture(self, texture: Texture) -> None:
266266 )
267267
268268 self ._texture = texture
269- self ._size = texture . size * self . _scale
269+ self ._size = self . _scale * texture . size
270270
271271 self .update_spatial_hash ()
272272 for sprite_list in self .sprite_lists :
You can’t perform that action at this time.
0 commit comments