Skip to content

fix(geometry): recompute DashedLine dashes on put_start_and_end_on#4878

Closed
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/3989-dashedline-refresh-dashes
Closed

fix(geometry): recompute DashedLine dashes on put_start_and_end_on#4878
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/3989-dashedline-refresh-dashes

Conversation

@Chessing234

@Chessing234 Chessing234 commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Rebuild dash submobjects when put_start_and_end_on changes endpoints
  • Fixes stretched dashes in updaters (Cairo DashedLine)

Fixes #3989

Test plan

  • pytest tests/module/mobject/types/vectorized_mobject/test_dashed_vmobject.py
  • pre-commit / mypy pass locally

Rebuild dash submobjects when endpoints change so dash length stays
consistent instead of stretching existing segments.

Fixes ManimCommunity#3989

Co-authored-by: Cursor <cursoragent@cursor.com>
@Chessing234 Chessing234 force-pushed the fix/3989-dashedline-refresh-dashes branch from 357d362 to b3d9c47 Compare July 8, 2026 11:46
Delegate to Line when endpoints coincide; only rebuild dashes for
non-degenerate length changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chopan050 chopan050 closed this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] DashedLine computes num_dashes only once (on init)

2 participants