Repository navigation
Conversation
…ernal change callback
This was referenced Nov 16, 2026
doodlewind
added a commit
that referenced
this pull request
Nov 24, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In three.js,
Euler.orderis an accessor whose setter calls the change callback (r187Euler.js#L116-L126), soobject.rotation.order = 'YXZ'recomposesobject.quaternion. Inpackages/sceneit's a plain field, so after a reorder the quaternion (and what renders) keeps the old order until another component is set.Change:
orderis a getter/setter over_orderinmath.ts; the setter calls_onChange. Internal writes (set,setFromRotationMatrix) use_order, so they still notify once or not at all, as before.Test: one
node:testcase in a new file,packages/scene/test/three-compat-euler.test.ts. It checks that assigningobject.rotation.orderrecomposesobject.quaternionto three.js's value for the new order and keeps the order. It's in its own file so it merges independently of the other open three.js-parity PRs, which all editthree-compat.test.ts.Only the reorder path changes.
Tier T (
packages/sceneTypeScript; no kernel, IR or export changes).Merge gate
npm run typecheck: pass, with main 1b1aa13 merged in.npm test: 175 tests, 174 pass, 0 fail, 1 skipped. The skip is the physics arena test intools/three/test/physics.test.ts, which needs a builtphysics_scene.wasm; main skips it too (174 tests, 173 pass).AssertionError [ERR_ASSERTION]: YXZ recomposes the quaternion to (0.5, 0.5, -0.5, 0.5)). At the head it passes.three@0.187.0, passes unchanged.npm test(186 tests, 185 pass, 0 fail, 1 skipped).npm run test:render: not run, because no idle GPU was available.packages/sceneis in scope, so please run it before merging.Runs were on a clean Linux box (Node 24.22.1) from a fresh clone.