Skip to content

fix: track usePolyMesh options, dedupe PolyMesh sync, fix setTransform clears, and clear mirror waivers - #100

Merged
alowpoly merged 1 commit into
mainfrom
pr-100-adapter-sync-and-fixes
Dec 4, 2026
Merged

alowpoly merged 1 commit into
mainfrom
pr-100-adapter-sync-and-fixes

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Track mtl, meshResolution, and parseOptions changes in React and Vue usePolyMesh via shared mergeMeshLoadOptions and cycle/built-in/special-number-safe serializeLoadMeshOptions (equal inline option objects and empty {} / undefined options do not trigger refetches), and forward parseOptions.meshResolution into optimizeMeshPolygons in React and Vue useMeshGeometry.
  • Deduplicate the 17-key <PolyMesh> transform/override sync across React and Vue via shared pickMeshSyncTransform / meshSyncTransformEqual, fix Vue standalone <PolyMesh> re-rasterizing leaves on position/rotation/scale updates, and skip setTransform on dying meshes during slot transitions.
  • Fix meshEntry.setTransform so clearing position/rotation/scale to undefined updates cast shadows and camera culling, while changing id with an unchanged transform does not re-emit shadows.
  • Guard requestAnimationFrame/cancelAnimationFrame in React and Vue usePolyAnimation for SSR, re-export TextureQuality from React and Vue roots, and reset .github/mirror-waivers.json to {}.

Verification

  • pnpm verify (all guards with 0 mirror waivers, unit tests, website tests, builds, typechecks, IR conformance, pack checks, bench build, 4 example builds)
  • pnpm --filter @layoutit/polycss --filter @layoutit/polycss-react --filter @layoutit/polycss-vue test:coverage
  • pnpm bench:gate:lifecycle (13/13 SSR + Chromium)
  • pnpm bench:gate:perf -- --base-ref origin/main (9/9 scenarios, 0 mutations)
  • visual-gate --mode ci --base-ref origin/main --browsers chromium,firefox --software-backend (55/55 checks, 0 px strict/parity diff)

@alowpoly
alowpoly merged commit 1565d97 into main Dec 4, 2026
16 of 18 checks passed
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