Browse Source

add Object3d.remove return this

06wj 8 years ago
parent
commit
817d14e50b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/core/Object3D.js

+ 4 - 2
src/core/Object3D.js

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