Skip to content

Commit a038288

Browse files
Fixed a bug with animation of removal of edges from a :class:.Graph (#2576)
* animationgroup for edge removal should not be full graph * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9e19f8c commit a038288

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

manim/mobject/graph.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,9 +1062,7 @@ def _remove_edges_animation(self, *edges, anim_args=None):
10621062
animation = anim_args.pop("animation", Uncreate)
10631063

10641064
mobjects = self.remove_edges(*edges)
1065-
return AnimationGroup(
1066-
*(animation(mobj, **anim_args) for mobj in mobjects), group=self
1067-
)
1065+
return AnimationGroup(*(animation(mobj, **anim_args) for mobj in mobjects))
10681066

10691067
@staticmethod
10701068
def from_networkx(nxgraph: nx.classes.graph.Graph, **kwargs) -> Graph:

0 commit comments

Comments
 (0)