Browse Source

Clean up LOD

Takahiro 6 năm trước cách đây
mục cha
commit
be90b28853
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/objects/LOD.js

+ 3 - 1
src/objects/LOD.js

@@ -66,7 +66,9 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		levels.splice( l, 0, { distance: distance, object: object } );
 
-		return this.add( object );
+		this.add( object );
+
+		return this;
 
 	},