Skip to content

Commit 94a984e

Browse files
trickyprbehackl
andauthored
Fix assert_is_mobject_method when using OpenGL (ManimCommunity#2655)
Co-authored-by: Benjamin Hackl <[email protected]>
1 parent 842a57e commit 94a984e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim/animation/updaters/mobject_update_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020

2121
from manim.constants import DEGREES, RIGHT
2222
from manim.mobject.mobject import Mobject
23+
from manim.opengl import OpenGLMobject
2324

2425

2526
def assert_is_mobject_method(method):
2627
assert inspect.ismethod(method)
2728
mobject = method.__self__
28-
assert isinstance(mobject, Mobject)
29+
assert isinstance(mobject, (Mobject, OpenGLMobject))
2930

3031

3132
def always(method, *args, **kwargs):

0 commit comments

Comments
 (0)