Skip to content

Rename pivot to pivotEl to not conflict with new Object3D.pivot in three r183#5143

Merged
diegoteran merged 1 commit intogoogle:masterfrom
vincentfretin:rename-pivot
Apr 3, 2026
Merged

Rename pivot to pivotEl to not conflict with new Object3D.pivot in three r183#5143
diegoteran merged 1 commit intogoogle:masterfrom
vincentfretin:rename-pivot

Conversation

@vincentfretin
Copy link
Copy Markdown
Contributor

@vincentfretin vincentfretin commented Apr 3, 2026

Rename pivot to pivotEl to not conflict with new Object3D.pivot in three r183
r183 have that code now in Object3D.updateMatrix
https://github.com/mrdoob/three.js/blob/r183/src/core/Object3D.js#L1137-L1148
CSS2DObject inherits from Object3D
so the calculated hotspot position was [NaN, NaN, NaN] because pivot.x is undefined, pivot being a div element and not a Vector3.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 3, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Copy Markdown
Collaborator

@diegoteran diegoteran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, Vincent

@diegoteran diegoteran merged commit 0da8942 into google:master Apr 3, 2026
3 checks passed
@vincentfretin vincentfretin deleted the rename-pivot branch April 4, 2026 07:15
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.

2 participants