Skip to content

Commit 3ab091a

Browse files
authored
Examples: Clean up. (#21653)
1 parent 10a33e1 commit 3ab091a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

examples/js/controls/TransformControls.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@
480480
} // Apply rotation snap
481481

482482

483-
if ( this.rotationSnap ) this.rotationAngle = Math.round( this.rotationAngle / this.rotationSnap ) * this.rotationSnap;
484-
this.rotationAngle = this.rotationAngle; // Apply rotate
483+
if ( this.rotationSnap ) this.rotationAngle = Math.round( this.rotationAngle / this.rotationSnap ) * this.rotationSnap; // Apply rotate
485484

486485
if ( space === 'local' && axis !== 'E' && axis !== 'XYZE' ) {
487486

examples/jsm/controls/TransformControls.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,6 @@ class TransformControls extends Object3D {
512512

513513
if ( this.rotationSnap ) this.rotationAngle = Math.round( this.rotationAngle / this.rotationSnap ) * this.rotationSnap;
514514

515-
this.rotationAngle = this.rotationAngle;
516-
517515
// Apply rotate
518516
if ( space === 'local' && axis !== 'E' && axis !== 'XYZE' ) {
519517

0 commit comments

Comments
 (0)