Browse Source

Method chainable LOD.addLevel()

Takahiro 6 years ago
parent
commit
45a5da6e65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/objects/LOD.js

+ 1 - 1
src/objects/LOD.js

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