manim
manim copied to clipboard
always_redraw works in 0.18.0 but not in 0.18.1 (single ValueTracker)
Description of bug / unexpected behavior
The following code which does not work in 0.18.1 and is fine on 0.17.3:
for i, idx_r in enumerate(r_idxs):
r = points[idx_r]
if i == 0:
track_pt = PointValueTracker(r)
# lines denoting the prq angle
pr = always_redraw(lambda: Line(p, track_pt.get_value(), color=YELLOW, buff=0))
qr = always_redraw(lambda: Line(q, track_pt.get_value(), color=YELLOW, buff=0))
grp = VGroup(pr, qr)
self.play(LaggedStartMap(Create, grp, runtime=2, lag_ratio=0.2))
# move the point of two "angle" lines along the line
# connecting points[idx_r] and points[idx_r + 1]
if i < len(r_idxs) - 1:
r_next = points[r_idxs[i + 1]]
self.play(track_pt.animate.set_value(r_next))
System specifications
System Details
- OS Windows11:
- RAM: 128 Gb
- Python version (
python/py/python3 --version
): 3.10.12 - Installed modules (provide output from
pip [list
):](url)
PASTE HERE
correct.mp4 and wrong.mp4 show the porblem at 15 sec
https://github.com/ManimCommunity/manim/assets/987574/7e8341d1-19e4-4c0a-af86-640cfa91b64f
https://github.com/ManimCommunity/manim/assets/987574/86fa4c6d-a32e-41b4-a448-5710ca33dada