|
@@ -24,7 +24,15 @@ THREE.Camera.prototype.lookAt = function ( vector ) {
|
|
|
|
|
|
if ( this.rotationAutoUpdate === true ) {
|
|
|
|
|
|
- this.rotation.setEulerFromRotationMatrix( this.matrix, this.eulerOrder );
|
|
|
+ if ( this.useQuaternion === false ) {
|
|
|
+
|
|
|
+ this.rotation.setEulerFromRotationMatrix( this.matrix, this.eulerOrder );
|
|
|
+
|
|
|
+ } else {
|
|
|
+
|
|
|
+ this.quaternion.setFromRotationMatrix( this.matrix );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|