Browse Source

Merge pull request #11482 from 06wj/patch-remove

fix Object3D.remove multi-object bug
Mr.doob 8 years ago
parent
commit
ef4844bcea
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/Object3D.js

+ 4 - 0
src/core/Object3D.js

@@ -356,6 +356,8 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, {
 
 			}
 
+			return this;
+
 		}
 
 		var index = this.children.indexOf( object );
@@ -370,6 +372,8 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, {
 
 		}
 
+		return this;
+		
 	},
 
 	getObjectById: function ( id ) {