Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Use VMobject.set_shade_in_3d in ThreeDAxes

Grant Sandersonce05b01598dd
diff --git a/mobject/coordinate_systems.py b/mobject/coordinate_systems.py
index 46332f977..cf4697165 100644
--- a/mobject/coordinate_systems.py
+++ b/mobject/coordinate_systems.py
@@ -144,8 +144,7 @@ class ThreeDAxes(Axes):
)
axis.add(axis.pieces)
axis.main_line.set_stroke(width=0, family=False)
- for submob in axis.family_members_with_points():
- submob.shade_in_3d = True
+ axis.set_shade_in_3d(True)
def set_axis_shading(self):
def make_func(axis):