mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
added condition for OpenGLVMobject (#3211)
This commit is contained in:
parent
78d88599ea
commit
4059bc1102
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject
|
||||
|
||||
__all__ = ["NumberLine", "UnitInterval"]
|
||||
|
||||
|
||||
|
|
@ -626,7 +628,7 @@ class NumberLine(Line):
|
|||
"""
|
||||
if label_constructor is None:
|
||||
label_constructor = self.label_constructor
|
||||
if isinstance(label_tex, VMobject):
|
||||
if isinstance(label_tex, (VMobject, OpenGLVMobject)):
|
||||
return label_tex
|
||||
else:
|
||||
return label_constructor(label_tex, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue