|
@@ -564,6 +564,25 @@ class TransformControls extends Object3D {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ reset() {
|
|
|
+
|
|
|
+ if ( ! this.enabled ) return;
|
|
|
+
|
|
|
+ if ( this.dragging ) {
|
|
|
+
|
|
|
+ this.object.position.copy( this._positionStart );
|
|
|
+ this.object.quaternion.copy( this._quaternionStart );
|
|
|
+ this.object.scale.copy( this._scaleStart );
|
|
|
+
|
|
|
+ this.dispatchEvent( _changeEvent );
|
|
|
+ this.dispatchEvent( _objectChangeEvent );
|
|
|
+
|
|
|
+ this.pointStart.copy( this.pointEnd );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
getRaycaster() {
|
|
|
|
|
|
return _raycaster;
|