瀏覽代碼

Added Object3D.defaultEulerOrder. Fixes #2425.

Mr.doob 13 年之前
父節點
當前提交
23d8430d82
共有 1 個文件被更改,包括 3 次插入2 次删除
  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.position = new THREE.Vector3();
 	this.rotation = 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.scale = new THREE.Vector3( 1, 1, 1 );
 
 
 	this.renderDepth = null;
 	this.renderDepth = null;
@@ -229,7 +229,7 @@ THREE.Object3D.prototype = {
 
 
 			this.children[ i ].getDescendants( array );
 			this.children[ i ].getDescendants( array );
 
 
-		};
+		}
 
 
 		return array;
 		return array;
 
 
@@ -301,5 +301,6 @@ THREE.Object3D.prototype = {
 };
 };
 
 
 THREE.Object3D.__m1 = new THREE.Matrix4();
 THREE.Object3D.__m1 = new THREE.Matrix4();
+THREE.Object3D.defaultEulerOrder = 'XYZ',
 
 
 THREE.Object3DCount = 0;
 THREE.Object3DCount = 0;