Skip to content

Commit

Permalink
Three.js r172
Browse files Browse the repository at this point in the history
  • Loading branch information
nimadez committed Jan 1, 2025
1 parent e2708cf commit 6c0485f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

[Changelog](https://github.com/nimadez/voxel-builder/releases)<br>
[Installation](https://github.com/nimadez/voxel-builder#installation)<br>
[Wiki](https://github.com/nimadez/voxel-builder/wiki)<br>
[Known Issues](https://github.com/nimadez/voxel-builder#known-issues)<br>
[FAQ](https://github.com/nimadez/voxel-builder#faq)<br>
[Bug Report](https://github.com/nimadez/voxel-builder/issues)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"electron": "^30.0.0",
"babylonjs": "^7.35.0",
"three": "^0.171.0",
"three": "^0.172.0",
"three-mesh-bvh": "^0.8.3",
"three-gpu-pathtracer": "^0.0.23",
"@tweenjs/tween.js": "^25.0.0"
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@

<ul class="menu_L panel" id="menu-about">
<li class="category">HELP</li>
<li><button onclick="window.open('https://github.com/nimadez/voxel-builder/wiki', '_blank').focus()">Documentation</button></li>
<li><button id="about_shortcuts">Shortcuts</button></li>
<li class="category">EXAMPLES</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/addons/BufferGeometryUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function mergeAttributes( attributes ) {
}

/**
* @param {BufferAttribute}
* @param {BufferAttribute} attribute
* @return {BufferAttribute}
*/
export function deepCloneAttribute( attribute ) {
Expand Down
9 changes: 5 additions & 4 deletions src/libs/addons/OrbitControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class OrbitControls extends Controls {
// Set to false to disable rotating
this.enableRotate = true;
this.rotateSpeed = 1.0;
this.keyRotateSpeed = 1.0;

// Set to false to disable panning
this.enablePan = true;
Expand Down Expand Up @@ -786,7 +787,7 @@ class OrbitControls extends Controls {

if ( this.enableRotate ) {

this._rotateUp( _twoPI * this.rotateSpeed / this.domElement.clientHeight );
this._rotateUp( _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );

}

Expand All @@ -809,7 +810,7 @@ class OrbitControls extends Controls {

if ( this.enableRotate ) {

this._rotateUp( - _twoPI * this.rotateSpeed / this.domElement.clientHeight );
this._rotateUp( - _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );

}

Expand All @@ -832,7 +833,7 @@ class OrbitControls extends Controls {

if ( this.enableRotate ) {

this._rotateLeft( _twoPI * this.rotateSpeed / this.domElement.clientHeight );
this._rotateLeft( _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );

}

Expand All @@ -855,7 +856,7 @@ class OrbitControls extends Controls {

if ( this.enableRotate ) {

this._rotateLeft( - _twoPI * this.rotateSpeed / this.domElement.clientHeight );
this._rotateLeft( - _twoPI * this.keyRotateSpeed / this.domElement.clientHeight );

}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/three.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/libs/three.module.min.js

Large diffs are not rendered by default.

0 comments on commit 6c0485f

Please sign in to comment.