A community-maintained Python framework for creating mathematical animations.
Fix type error: pass scene instead of self to get_hash_from_play_call (#4524)
Jude Nimo739c2c3f1478
diff --git a/manim/utils/caching.py b/manim/utils/caching.pyindex 0c339c914..9ab7e6bfd 100644--- a/manim/utils/caching.py+++ b/manim/utils/caching.py@@ -48,9 +48,8 @@ def handle_caching_play(func: Callable[..., None]) -> Callable[..., None]:returnif not config["disable_caching"]:mobjects_on_scene = scene.mobjects- # TODO: the first argument seems wrong. Shouldn't it be scene instead?hash_play = get_hash_from_play_call(- self, # type: ignore[arg-type]+ scene,self.camera,animations,mobjects_on_scene,