Skip to content

Commit 7a4aec8

Browse files
committed
Comment on strangeness in redundant sprite list updates
1 parent fb6939d commit 7a4aec8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arcade/sprite/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,10 @@ def rescale_relative_to_point(self, point: Point2, scale_by: AsFloat | Point2) -
707707
(old_y - point_y) * factor_y + point_y,
708708
)
709709

710+
# TODO: this seems potentially redundant given we use .position above
711+
# It's a setter which already rebuilds things, so we probably should
712+
# only rebuild once.
713+
710714
# rebuild all spatial metadata
711715
self.update_spatial_hash()
712716
for sprite_list in self.sprite_lists:

0 commit comments

Comments
 (0)