From d3dc34a678314e80ec69795c2f1e41f9e68018d8 Mon Sep 17 00:00:00 2001 From: Bill Xi <86190295+TurkeyBilly@users.noreply.github.com> Date: Thu, 11 Aug 2022 13:39:47 +0800 Subject: [PATCH] Update mobject.py --- manimlib/mobject/mobject.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index d55ae77a0e..2a3260f719 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -315,7 +315,10 @@ def __getitem__(self, value): GroupClass = self.get_group_class() return GroupClass(*self.split().__getitem__(value)) return self.split().__getitem__(value) - + + def __setitem__(self, index, value): + return self.split().__setitem__(index, value) + def __iter__(self): return iter(self.split())