|
@@ -59,27 +59,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,
|
|
@@ -336,12 +319,6 @@ Object.assign( Material.prototype, EventDispatcher.prototype, {
|
|
|
|
|
|
},
|
|
|
|
|
|
- update: function () {
|
|
|
-
|
|
|
- this.dispatchEvent( { type: 'update' } );
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
dispose: function () {
|
|
|
|
|
|
this.dispatchEvent( { type: 'dispose' } );
|