Skip to content

always_redraw works in 0.18.0 but not in 0.18.1 (single ValueTracker) #3762

Open
@fierval

Description

@fierval

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

correct.mp4
wrong.mp4

Metadata

Metadata

Assignees

No one assigned

    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