提交 8761dd92 编写于 作者: T Tristan VALCKE

Protect Object3D against the closure circular reference bug

上级 b0178536
......@@ -101,7 +101,7 @@ function Object3D() {
Object3D.DefaultUp = new Vector3( 0, 1, 0 );
Object3D.DefaultMatrixAutoUpdate = true;
Object3D.prototype = {
Object.assign( Object3D.prototype, EventDispatcher.prototype, {
constructor: Object3D,
......@@ -730,8 +730,7 @@ Object3D.prototype = {
}
};
} );
Object.assign( Object3D.prototype, EventDispatcher.prototype );
export { Object3D };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册