Skip to content

armgit / manim

Public Imported from GitHub
0

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.py
index 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 np
from manim.constants import DEGREES, RIGHT
from manim.mobject.mobject import Mobject
+from manim.opengl import OpenGLMobject
def 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):