3b1b / 3b1b/manim

Transform Failure

未关闭
#2,349 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
93.8k
派生
7.7k
PR 合并指标
PR 指标待抓取

描述

### Transform fails after 2 times of pass down.

**Code**:
```
from manim import *
import math

class FadeInExample(MovingCameraScene):
def construct(self):
equation = MathTex("y", "=", r"\frac{1}{x}")
equation.move_to(UR)
self.play(Write(equation), run_time=1)

new_equation = MathTex(r"f(x)", "=", r"\frac{1}{x}")
new_equation.move_to(equation)
self.play(
Transform(equation, new_equation),
run_time=1
)

new2_equation = MathTex("f(x)", "=", r"\frac{1}{x}")
new2_equation.move_to(new_equation)

self.add(new2_equation)
self.remove(new_equation)

integral_eq = MathTex(r"\int_{1}^{e} \frac{1}{x}\,dx = 1")
integral_eq.move_to(new2_equation)

self.play(
Transform(new2_equation, integral_eq),
run_time=1
)
self.wait(1)
```

**The third transform failed. It will still show the new_equation and would just paste the new2_equation onto the old one again.**

### idk if that's mine mistake, at least I cant see anything that is unsual.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Look at the Transform animation in manim/scene/scene.py and manim/animation/transform.py. The issue is about Transform failing after multiple passes. Start by running the provided code to see the bug. Then examine how Transform handles target mobjects and their state. Check if there's a mismatch between the mobject being transformed and the target. The goal is to make the third Transform work correctly without overlapping equations.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
computer-graphics
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。