Skip to content

Commit

Permalink
chore(deps): bump three from 0.165.0 to 0.166.1 (#1350)
Browse files Browse the repository at this point in the history
* chore(deps): bump three from 0.165.0 to 0.166.1

Bumps [three](https://github.com/mrdoob/three.js) from 0.165.0 to 0.166.1.
- [Release notes](https://github.com/mrdoob/three.js/releases)
- [Commits](https://github.com/mrdoob/three.js/commits)

---
updated-dependencies:
- dependency-name: three
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix #1344 compatibility with three 166

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mistic100 <[email protected]>
  • Loading branch information
dependabot[bot] and mistic100 authored Jul 3, 2024
1 parent 5aa929b commit f35beba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./src/index.ts",
"types": "./src/index.ts",
"dependencies": {
"three": "^0.165.0"
"three": "^0.166.1"
},
"scripts": {
"build": "tsup",
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/services/Renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class Renderer extends AbstractService {
this.scene = new Scene();

this.camera = new PerspectiveCamera(50, 16 / 9, 0.1, 2 * SPHERE_RADIUS);
this.camera.matrixWorldAutoUpdate = false;
this.camera.matrixAutoUpdate = false;

this.mesh = this.viewer.adapter.createMesh();
this.mesh.userData = { [VIEWER_DATA]: true };
Expand Down Expand Up @@ -221,7 +221,10 @@ export class Renderer extends AbstractService {
.negate();
}
this.camera.rotateZ(-this.state.roll);

this.camera.updateMatrix();
this.camera.updateMatrixWorld();

this.viewer.needsUpdate();
this.frustumNeedsUpdate = true;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10193,10 +10193,10 @@ thenify-all@^1.0.0:
dependencies:
any-promise "^1.0.0"

three@^0.165.0:
version "0.165.0"
resolved "https://registry.yarnpkg.com/three/-/three-0.165.0.tgz#43b93b9b56c71b7eeee6b531d737ab573633ccd1"
integrity sha512-cc96IlVYGydeceu0e5xq70H8/yoVT/tXBxV/W8A/U6uOq7DXc4/s1Mkmnu6SqoYGhSRWWYFOhVwvq6V0VtbplA==
three@^0.166.1:
version "0.166.1"
resolved "https://registry.yarnpkg.com/three/-/three-0.166.1.tgz#322cfc48fff4e751cd47d61fd1558c387d098d7c"
integrity sha512-LtuafkKHHzm61AQA1be2MAYIw1IjmhOUxhBa0prrLpEMWbV7ijvxCRHjSgHPGp2493wLBzwKV46tA9nivLEgKg==

through2@^2.0.0:
version "2.0.5"
Expand Down

0 comments on commit f35beba

Please sign in to comment.