Explorar o código

Added Object3D.defaultEulerOrder. Fixes #2425.

Mr.doob %!s(int64=13) %!d(string=hai) anos
pai
achega
23d8430d82
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/core/Object3D.js

+ 3 - 2
src/core/Object3D.js

@@ -18,7 +18,7 @@ THREE.Object3D = function () {
 
 	this.position = new THREE.Vector3();
 	this.rotation = new THREE.Vector3();
-	this.eulerOrder = 'XYZ';
+	this.eulerOrder = THREE.Object3D.defaultEulerOrder;
 	this.scale = new THREE.Vector3( 1, 1, 1 );
 
 	this.renderDepth = null;
@@ -229,7 +229,7 @@ THREE.Object3D.prototype = {
 
 			this.children[ i ].getDescendants( array );
 
-		};
+		}
 
 		return array;
 
@@ -301,5 +301,6 @@ THREE.Object3D.prototype = {
 };
 
 THREE.Object3D.__m1 = new THREE.Matrix4();
+THREE.Object3D.defaultEulerOrder = 'XYZ',
 
 THREE.Object3DCount = 0;