Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0] bump three.js to r140 #978

Merged
merged 3 commits into from
May 24, 2022
Merged

[1.0] bump three.js to r140 #978

merged 3 commits into from
May 24, 2022

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented May 23, 2022

Bump Three.js to r140.

Description

  • Since .fog has been transferred to each subclass of Material, MToonMaterial now has its own .fog property.
  • Remove use of Object.freeze which causes TypeScript type error.
    • Note that TypeScript in this repo is outdated and can be fixed by updating the TypeScript. So it's a workaround.

Points need review

  • How do you think about the removal of Object.freeze ?

@0b5vr 0b5vr added dependencies Pull requests that update a dependency file VRM 1.0 labels May 23, 2022
@0b5vr 0b5vr added this to the VRM 1.0 milestone May 23, 2022
@0b5vr 0b5vr self-assigned this May 23, 2022
0b5vr added 2 commits May 23, 2022 18:07
using `Object.freeze` on Quaternion makes the quaternion type imcompatible because of iterator

It seems to be a bug of TypeScript which is already fixed in the latest version
See: microsoft/TypeScript#42543
const IDENTITY_MATRIX4 = Object.freeze(new THREE.Matrix4());
const IDENTITY_QUATERNION = Object.freeze(new THREE.Quaternion());
const IDENTITY_MATRIX4 = new THREE.Matrix4();
const IDENTITY_QUATERNION = new THREE.Quaternion();
Copy link
Contributor

Choose a reason for hiding this comment

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

特にexportもしてませんし、workaroundであれば私は許容できるという感想です。

@nyamadan nyamadan self-requested a review May 24, 2022 03:42
@0b5vr 0b5vr merged commit 872bd2e into 1.0 May 24, 2022
@0b5vr 0b5vr deleted the 1.0-bump-three-r140 branch May 24, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file VRM 1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants