mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
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:
parent
9176d6e9d6
commit
d81262e58a
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue