mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Tweak moderngl import in ImageMobject
This commit is contained in:
parent
9eda000a97
commit
8eac976c8d
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import numpy as np
|
||||
import moderngl
|
||||
from PIL import Image
|
||||
from moderngl import TRIANGLES
|
||||
|
||||
from manimlib.constants import DL, DR, UL, UR
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
|
@ -25,7 +25,7 @@ class ImageMobject(Mobject):
|
|||
('im_coords', np.float32, (2,)),
|
||||
('opacity', np.float32, (1,)),
|
||||
]
|
||||
render_primitive: int = TRIANGLES
|
||||
render_primitive: int = moderngl.TRIANGLES
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Add table
Reference in a new issue