Skip to content

Commit 46d0a36

Browse files
committed
Minor cleanup
1 parent 63184f8 commit 46d0a36

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

manim/mobject/opengl_mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ def set_color_by_xyz_func(
13821382

13831383
def init_shader_data(self):
13841384
# TODO, only call this when needed?
1385-
self.shader_data = np.zeros(len(self.get_points()), dtype=self.__class__.shader_dtype)
1385+
self.shader_data = np.zeros(len(self.get_points()), dtype=self.shader_dtype)
13861386
self.shader_indices = None
13871387
self.shader_wrapper = ShaderWrapper(
13881388
vert_data=self.shader_data,

manim/mobject/types/opengl_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def index_dot(index):
184184
# For shaders
185185
def get_shader_data(self):
186186
s_points, du_points, dv_points = self.get_surface_points_and_nudged_points()
187-
shader_data = np.zeros(len(s_points), dtype=self.__class__.shader_dtype)
187+
shader_data = np.zeros(len(s_points), dtype=self.shader_dtype)
188188
if "points" not in self.locked_data_keys:
189189
shader_data["point"] = s_points
190190
shader_data["du_point"] = du_points

manim/mobject/types/opengl_vectorized_mobject.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
from ...constants import *
99
from ...utils.color import *
1010

11-
# from manimlib.constants import *
12-
# from manimlib.mobject.mobject import Mobject
13-
# from manimlib.mobject.mobject import Point
1411
from ...utils.bezier import bezier
1512

1613
# from manimlib.utils.bezier import get_smooth_quadratic_bezier_handle_points
@@ -116,6 +113,7 @@ def __init__(
116113
self.flat_stroke = flat_stroke
117114
self.render_primitive = render_primitive
118115
self.triangulation_locked = triangulation_locked
116+
self.n_points_per_curve = n_points_per_curve
119117

120118
self.needs_new_triangulation = True
121119
self.triangulation = np.zeros(0, dtype="i4")

0 commit comments

Comments
 (0)