Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Merge pull request #26 from ManimCommunity/relative-imports

Leo Torres0fc1562081cf
diff --cc manimlib/camera/moving_camera.py
index f6417ca57,4cd9fcde7..9bc928c8a
--- a/manimlib/camera/moving_camera.py
+++ b/manimlib/camera/moving_camera.py
@@@ -148,9 -94,5 +148,9 @@@ class MovingCamera(Camera)
"""
Returns all mobjets whose movement implies that the camera
should think of all other mobjects on the screen as moving
+
+ Returns
+ -------
+ list
"""
- return [self.frame]
+ return [self.frame]
diff --cc manimlib/camera/three_d_camera.py
index 0a61d3cd7,97b6182c7..c5e7dfc1c
--- a/manimlib/camera/three_d_camera.py
+++ b/manimlib/camera/three_d_camera.py
@@@ -395,15 -227,6 +395,15 @@@ class ThreeDCamera(Camera)
self.fixed_orientation_mobjects.remove(mobject)
def remove_fixed_in_frame_mobjects(self, *mobjects):
+ """If a mobject was fixed in frame by passing it through
+ `self.add_fixed_in_frame_mobjects`, then this undoes that fixing.
+ The Mobject will no longer be fixed in frame.
+
+ Parameters:
+ -----------
+ *mobjects : Mobject
+ The mobjects which need not be fixed in frame any longer.
+ """
for mobject in self.extract_mobject_family_members(mobjects):
if mobject in self.fixed_in_frame_mobjects:
- self.fixed_in_frame_mobjects.remove(mobject)
+ self.fixed_in_frame_mobjects.remove(mobject)