A community-maintained Python framework for creating mathematical animations.
Fixed bug associated with ThreeDVMobject
Grant Sanderson32da0771995d
diff --git a/mobject/three_dimensions.py b/mobject/three_dimensions.pyindex 61335c291..3785140cb 100644--- a/mobject/three_dimensions.py+++ b/mobject/three_dimensions.py@@ -21,10 +21,11 @@ class ThreeDVMobject(VMobject):VMobject.__init__(self, **kwargs)if vmobject is not None:self.points = np.array(vmobject.points)- self.match_style(vmobject)- self.submobjects = map(- ThreeDVMobject, vmobject.submobjects- )+ self.match_style(vmobject, family=False)+ self.submobjects = [+ ThreeDVMobject(submob, **kwargs)+ for submob in vmobject.submobjects+ ]def get_gradient_start_and_end_points(self):return self.get_start_corner(), self.get_end_corner()