瀏覽代碼

fix Object3D.remove multi-object bug

06wj 8 年之前
父節點
當前提交
fd203393fb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/Object3D.js

+ 2 - 0
src/core/Object3D.js

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