From d81262e58a5b0cb4e4dabd534859f9cb7da27ad0 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 6 Feb 2018 12:22:03 -0800 Subject: [PATCH] Make z_buff_func only round to the hundredths place, so small variations in z-coordiante not intended for z indexing don't mess things up --- camera/camera.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/camera/camera.py b/camera/camera.py index 17b2d744..334c1200 100644 --- a/camera/camera.py +++ b/camera/camera.py @@ -140,7 +140,8 @@ class Camera(object): self, mobjects, include_submobjects = True, excluded_mobjects = None, - z_buff_func = lambda m : m.get_center()[2] + #Round z coordinate to nearest hundredth when comparring + z_buff_func = lambda m : np.round(m.get_center()[2], 2) ): if include_submobjects: mobjects = self.extract_mobject_family_members(