@woosh/meep-engine 2.47.2 → 2.47.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.47.2",
8
+ "version": "2.47.3",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -228,6 +228,12 @@ export class NodeInstance {
228
228
  }
229
229
  }
230
230
 
231
+ clearParameters(){
232
+ for (const key in this.parameters) {
233
+ this.deleteParameter(key);
234
+ }
235
+ }
236
+
231
237
  /**
232
238
  *
233
239
  * @param {NodeDescription} node
@@ -247,8 +253,9 @@ export class NodeInstance {
247
253
  });
248
254
 
249
255
  //clear parameters
250
- this.parameters.splice(0, this.parameters.length);
256
+ this.clearParameters();
251
257
 
258
+ // TODO address parameters in NodeDescription as well
252
259
  //populate parameter defaults
253
260
  node.parameters.forEach(pd => {
254
261
  this.parameters[pd.id] = pd.defaultValue;