Skip to content

Commit b406300

Browse files
committed
Set depth_test for family
1 parent 08607e2 commit b406300

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

manim/mobject/opengl_mobject.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def __init__(
9797
self.init_colors()
9898
# self.init_shader_data()
9999

100-
# if self.depth_test:
101-
# self.apply_depth_test()
100+
if self.depth_test:
101+
self.apply_depth_test()
102102

103103
def __str__(self):
104104
return self.__class__.__name__
@@ -1311,7 +1311,7 @@ def affects_shader_info_id(func):
13111311
def wrapper(self):
13121312
for mob in self.get_family():
13131313
func(mob)
1314-
mob.refresh_shader_wrapper_id()
1314+
# mob.refresh_shader_wrapper_id()
13151315
return self
13161316

13171317
return wrapper
@@ -1392,9 +1392,9 @@ def init_shader_data(self):
13921392
render_primitive=self.render_primitive,
13931393
)
13941394

1395-
def refresh_shader_wrapper_id(self):
1396-
self.shader_wrapper.refresh_id()
1397-
return self
1395+
# def refresh_shader_wrapper_id(self):
1396+
# self.shader_wrapper.refresh_id()
1397+
# return self
13981398

13991399
def get_shader_wrapper(self):
14001400
self.shader_wrapper = ShaderWrapper(

0 commit comments

Comments
 (0)