A community-maintained Python framework for creating mathematical animations.
Include `Text.gradient` in hash to properly regenerate `Text` when its gradient changes (#4099)
Abhilasha Tandon4ddf77739d6a
diff --git a/manim/mobject/text/text_mobject.py b/manim/mobject/text/text_mobject.pyindex 5f20dff2a..c35f874ed 100644--- a/manim/mobject/text/text_mobject.py+++ b/manim/mobject/text/text_mobject.py@@ -678,6 +678,7 @@ class Text(SVGMobject):settings += str(self.t2f) + str(self.t2s) + str(self.t2w) + str(self.t2c)settings += str(self.line_spacing) + str(self._font_size)settings += str(self.disable_ligatures)+ settings += str(self.gradient)id_str = self.text + settingshasher = hashlib.sha256()hasher.update(id_str.encode())@@ -1561,7 +1562,7 @@ def register_font(font_file: str | Path):logger.debug("Found file at %s", file_path.absolute())breakelse:- error = f"Can't find {font_file}.Tried these : {possible_paths}"+ error = f"Can't find {font_file}. Checked paths: {possible_paths}"raise FileNotFoundError(error)try: