提交 d4ee2921 编写于 作者: T Tristan VALCKE

Fix Material accessors

上级 192e8671
......@@ -63,24 +63,27 @@ function Material() {
}
Object.assign( Material.prototype, EventDispatcher.prototype, {
constructor: Material,
isMaterial: true,
Object.defineProperty( Material.prototype, "needsUpdate", {
get needsUpdate() {
get: function() {
return this._needsUpdate;
},
set needsUpdate( value ) {
set: function(value) {
if ( value === true ) this.update();
this._needsUpdate = value;
},
}
});
Object.assign( Material.prototype, EventDispatcher.prototype, {
constructor: Material,
isMaterial: true,
setValues: function ( values ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册