Jelajahi Sumber

Update LOD.js

donutcoffee 5 tahun lalu
induk
melakukan
837843d234
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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 );