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

This commit is contained in:
Grant Sanderson 2018-02-06 12:22:03 -08:00
parent 9176d6e9d6
commit d81262e58a

View file

@ -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(