Skip to content

Commit 9e74ee7

Browse files
authored
Add zero to remove negative zeros (#4332)
1 parent 3721fb1 commit 9e74ee7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim/animation/transform_matching_parts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ def get_mobject_key(mobject: Mobject) -> int:
225225
mobject.save_state()
226226
mobject.center()
227227
mobject.set(height=1)
228-
result = hash(np.round(mobject.points, 3).tobytes())
228+
rounded_points = np.round(mobject.points, 3) + 0.0
229+
result = hash(rounded_points.tobytes())
229230
mobject.restore()
230231
return result
231232

0 commit comments

Comments
 (0)