@woosh/meep-engine 2.39.24 → 2.39.25

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.
@@ -312,7 +312,7 @@ export class BlenderCameraOrientationGizmo extends CanvasView {
312
312
  compose_matrix4_array(rotation_matrix, Vector3.zero, rotation, Vector3.one);
313
313
  mat4.invert(rotation_matrix, rotation_matrix);
314
314
 
315
- for (let bubble of this.bubbles) {
315
+ for (const bubble of this.bubbles) {
316
316
  const direction = bubble.direction.clone();
317
317
  direction.applyMatrix4(rotation_matrix);
318
318
 
@@ -321,10 +321,12 @@ export class BlenderCameraOrientationGizmo extends CanvasView {
321
321
 
322
322
  // Generate a list of layers to draw
323
323
  const layers = [];
324
- for (let axis in this.bubbles) {
324
+
325
+ for (const bubble of this.bubbles) {
325
326
  // Check if the name starts with a negative and dont add it to the layer list if secondary axis is turned off
326
- if (this.options.showSecondary === true || axis[0] !== "-") {
327
- layers.push(this.bubbles[axis]);
327
+ const is_secondary = bubble.axis[0] !== "-";
328
+ if (this.options.showSecondary === true || is_secondary) {
329
+ layers.push(bubble);
328
330
  }
329
331
  }
330
332
 
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.39.24",
8
+ "version": "2.39.25",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",