A community-maintained Python framework for creating mathematical animations.
Fix `assert_is_mobject_method` when using OpenGL (#2655)
trickypr94a984e1839f
diff --git a/manim/animation/updaters/mobject_update_utils.py b/manim/animation/updaters/mobject_update_utils.pyindex c039b04b8..c77174c89 100644--- a/manim/animation/updaters/mobject_update_utils.py+++ b/manim/animation/updaters/mobject_update_utils.py@@ -20,12 +20,13 @@ import numpy as npfrom manim.constants import DEGREES, RIGHTfrom manim.mobject.mobject import Mobject+from manim.opengl import OpenGLMobjectdef assert_is_mobject_method(method):assert inspect.ismethod(method)mobject = method.__self__- assert isinstance(mobject, Mobject)+ assert isinstance(mobject, (Mobject, OpenGLMobject))def always(method, *args, **kwargs):