Skip to content

Core: fix mesh bounds after setVertex updates - #933

Open
clang-clang-clang wants to merge 1 commit into
coronalabs:masterfrom
dianchu:fix-mesh-bounds
Open

Core: fix mesh bounds after setVertex updates#933
clang-clang-clang wants to merge 1 commit into
coronalabs:masterfrom
dianchu:fix-mesh-bounds

Conversation

@clang-clang-clang

@clang-clang-clang clang-clang-clang commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This prevents resized meshes from being culled using stale bounds near screen edges.

This PR invalidates the cached bounds when x or y changes. Z-only updates do not rebuild the 2D bounds, and values within the existing floating-point tolerance remain ignored.
Tested with an edge-culling.tar.gz sample comparing a rectangle, an unchanged mesh, and a resized mesh.

BEFORE FIX AFTER FIX
before fix after fix

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.

1 participant