@woosh/meep-engine 2.33.52 → 2.33.53

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.
@@ -16,7 +16,7 @@ export function read_property(root, parts, part_offset, part_count) {
16
16
 
17
17
  const part = parts[i + part_offset];
18
18
 
19
- if (thing.hasOwnProperty(part)) {
19
+ if (typeof thing[part] !== 'undefined') {
20
20
  thing = thing[part];
21
21
  } else {
22
22
  const getter_name = `get${capitalize(part)}`;
@@ -17,7 +17,7 @@ export function write_property(root, parts, part_offset, part_count, value) {
17
17
 
18
18
  const part = parts[i + part_offset];
19
19
 
20
- if (thing.hasOwnProperty(part)) {
20
+ if (typeof thing[part] !== 'undefined') {
21
21
  thing = thing[part];
22
22
  } else {
23
23
 
@@ -42,11 +42,9 @@ export function write_property(root, parts, part_offset, part_count, value) {
42
42
  if (typeof setter === "function") {
43
43
  // resolve via setter
44
44
  setter.call(thing, value);
45
- } else if (thing.hasOwnProperty(last_part)) {
46
- thing[last_part] = value;
47
45
  } else {
48
- // no setter
49
- throw new Error(`No no property or getter found for '${last_part}' on [${part_count - 1}]'${parts.slice(part_offset, part_offset + part_count).join('/')}'`);
46
+ // write directly to the field
47
+ thing[last_part] = value;
50
48
  }
51
49
  }
52
50
 
@@ -154,28 +154,13 @@ export class ParticleVolume {
154
154
  "track": {
155
155
  "itemSize": 4,
156
156
  "data": [
157
- 0.5764705882352941,
158
- 0.5764705882352941,
159
- 0.5764705882352941,
160
- 0,
161
- 0.803921568627451,
162
- 0.803921568627451,
163
- 0.803921568627451,
164
- 0.28160919540229884,
165
- 0.803921568627451,
166
- 0.803921568627451,
167
- 0.803921568627451,
168
- 0.21264367816091953,
169
- 0.803921568627451,
170
- 0.803921568627451,
171
- 0.803921568627451,
172
- 0
157
+ 1,
158
+ 1,
159
+ 1,
160
+ 1,
173
161
  ],
174
162
  "positions": [
175
- 0,
176
- 0.18085106382978725,
177
- 0.7074468085106383,
178
- 1
163
+ 0
179
164
  ]
180
165
  }
181
166
  },
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.33.52",
8
+ "version": "2.33.53",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",