Skip to content

Commit

Permalink
Update 4.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
nimadez committed Nov 29, 2024
1 parent cd39cca commit e2708cf
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 1,645 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voxel-builder",
"version": "4.5.8",
"version": "4.5.9",
"description": "Voxel-based 3D modeling application",
"main": "electron.js",
"scripts": {
Expand All @@ -11,8 +11,8 @@
"license": "MIT",
"devDependencies": {
"electron": "^30.0.0",
"babylonjs": "^7.33.0",
"three": "^0.170.0",
"babylonjs": "^7.35.0",
"three": "^0.171.0",
"three-mesh-bvh": "^0.8.3",
"three-gpu-pathtracer": "^0.0.23",
"@tweenjs/tween.js": "^25.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
<li class="spacer"></li>
<li class="about">
VOXEL BUILDER
<br>&#8627; 4.5.8 Beta
<br>&#8627; 4.5.9 Beta
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/">GitHub</a>
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/releases">Changelog</a>
<br>Developer
Expand Down
50 changes: 41 additions & 9 deletions src/libs/addons/OrbitControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,19 @@ class OrbitControls extends Controls {

if ( event.ctrlKey || event.metaKey || event.shiftKey ) {

this._rotateUp( _twoPI * this.rotateSpeed / this.domElement.clientHeight );
if ( this.enableRotate ) {

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

}

} else {

this._pan( 0, this.keyPanSpeed );
if ( this.enablePan ) {

this._pan( 0, this.keyPanSpeed );

}

}

Expand All @@ -799,11 +807,19 @@ class OrbitControls extends Controls {

if ( event.ctrlKey || event.metaKey || event.shiftKey ) {

this._rotateUp( - _twoPI * this.rotateSpeed / this.domElement.clientHeight );
if ( this.enableRotate ) {

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

}

} else {

this._pan( 0, - this.keyPanSpeed );
if ( this.enablePan ) {

this._pan( 0, - this.keyPanSpeed );

}

}

Expand All @@ -814,11 +830,19 @@ class OrbitControls extends Controls {

if ( event.ctrlKey || event.metaKey || event.shiftKey ) {

this._rotateLeft( _twoPI * this.rotateSpeed / this.domElement.clientHeight );
if ( this.enableRotate ) {

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

}

} else {

this._pan( this.keyPanSpeed, 0 );
if ( this.enablePan ) {

this._pan( this.keyPanSpeed, 0 );

}

}

Expand All @@ -829,11 +853,19 @@ class OrbitControls extends Controls {

if ( event.ctrlKey || event.metaKey || event.shiftKey ) {

this._rotateLeft( - _twoPI * this.rotateSpeed / this.domElement.clientHeight );
if ( this.enableRotate ) {

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

}

} else {

this._pan( - this.keyPanSpeed, 0 );
if ( this.enablePan ) {

this._pan( - this.keyPanSpeed, 0 );

}

}

Expand Down Expand Up @@ -1340,7 +1372,7 @@ function onMouseWheel( event ) {

function onKeyDown( event ) {

if ( this.enabled === false || this.enablePan === false ) return;
if ( this.enabled === false ) return;

this._handleKeyDown( event );

Expand Down
Loading

0 comments on commit e2708cf

Please sign in to comment.