Skip to content

After become(), colors of the two VMobjects are linked #3505

@regnarg

Description

@regnarg

Description of bug / unexpected behavior

After calling a.become(b), where a and b are both VMobjects, their colors become linked. Changing color of a (e.g. with set_stroke also changes color of b and vice versa.

Expected behavior

After become() call, the two Mobjects should be independent and should change colors independently.

How to reproduce the issue

Code for reproducing the problem
from manim import *

class PromoScene(Scene):
    def construct(self):
        a = Circle()
        b = Square()
        self.add(a)
        self.add(b)
        b.become(a)
        b.shift(1*RIGHT)
        b.set_stroke(YELLOW, opacity=1)
        self.wait(1)

Additional media files

Images/GIFs Result I get:

got

Expected:

expected

Metadata

Metadata

Assignees

Labels

issue:bugSomething isn't working... For use in issues

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions