From f64cae1db4ab93681cb66a204fe0dd983b3cc4f7 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 16 Dec 2022 09:56:03 -0800 Subject: [PATCH] Push depth_test into __init__ args --- manimlib/mobject/mobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index efb88361..a5a23be7 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -67,7 +67,6 @@ class Mobject(object): shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [ ('point', np.float32, (3,)), ] - depth_test: bool = False CONFIG = {} # Need to delete @@ -85,6 +84,7 @@ class Mobject(object): texture_paths: dict[str, str] | None = None, # If true, the mobject will not get rotated according to camera position is_fixed_in_frame: bool = False, + depth_test: bool = False, **kwargs ): self.color = color @@ -94,6 +94,7 @@ class Mobject(object): self.gloss = gloss self.texture_paths = texture_paths self.is_fixed_in_frame = is_fixed_in_frame + self.depth_test = depth_test digest_config(self, kwargs) # Need to delete