提交 d91bfaad 编写于 作者: M Mr.doob

Updated builds.

上级 cc2fea97
......@@ -7161,27 +7161,10 @@
this.visible = true;
this._needsUpdate = true;
this.needsUpdate = true;
}
Object.defineProperty( Material.prototype, 'needsUpdate', {
get: function () {
return this._needsUpdate;
},
set: function ( value ) {
if ( value === true ) this.update();
this._needsUpdate = value;
}
} );
Object.assign( Material.prototype, EventDispatcher.prototype, {
isMaterial: true,
......@@ -7438,12 +7421,6 @@
},
update: function () {
this.dispatchEvent( { type: 'update' } );
},
dispose: function () {
this.dispatchEvent( { type: 'dispose' } );
......
此差异已折叠。
......@@ -7155,27 +7155,10 @@ function Material() {
this.visible = true;
this._needsUpdate = true;
this.needsUpdate = true;
}
Object.defineProperty( Material.prototype, 'needsUpdate', {
get: function () {
return this._needsUpdate;
},
set: function ( value ) {
if ( value === true ) this.update();
this._needsUpdate = value;
}
} );
Object.assign( Material.prototype, EventDispatcher.prototype, {
isMaterial: true,
......@@ -7432,12 +7415,6 @@ Object.assign( Material.prototype, EventDispatcher.prototype, {
},
update: function () {
this.dispatchEvent( { type: 'update' } );
},
dispose: function () {
this.dispatchEvent( { type: 'dispose' } );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册