diff --git a/manimlib/animation/transform_matching_parts.py b/manimlib/animation/transform_matching_parts.py index 3ee228a9..58ce0461 100644 --- a/manimlib/animation/transform_matching_parts.py +++ b/manimlib/animation/transform_matching_parts.py @@ -139,3 +139,18 @@ class TransformMatchingTex(TransformMatchingParts): @staticmethod def get_mobject_key(mobject): return mobject.get_tex() + + +class TransformMatchingMTex(TransformMatchingParts): + CONFIG = { + "mobject_type": VMobject, + "group_type": VGroup, + } + + @staticmethod + def get_mobject_parts(mobject): + return mobject.submobjects + + @staticmethod + def get_mobject_key(mobject): + return mobject.submob_id_tuple