浏览代码

Update LOD.js

donutcoffee 5 年之前
父节点
当前提交
837843d234
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/objects/LOD.js

+ 2 - 2
src/objects/LOD.js

@@ -14,8 +14,6 @@ function LOD() {
 
 	Object3D.call( this );
 
-	this.currentLevel = 0;
-
 	this.type = 'LOD';
 
 	Object.defineProperties( this, {
@@ -35,6 +33,8 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	isLOD: true,
 
+	currentLevel: 0,
+
 	copy: function ( source ) {
 
 		Object3D.prototype.copy.call( this, source, false );