super-three 0.147.0 → 0.147.1

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.
@@ -25983,9 +25983,9 @@ class WebXRManager extends EventDispatcher {
25983
25983
  };
25984
25984
 
25985
25985
  this.removeLayer = function(layer) {
25986
+ layers.splice( layers.indexOf(layer), 1 );
25986
25987
  if (!window.XRWebGLBinding || !this.layersEnabled || !session) { return; }
25987
25988
 
25988
- layers.splice( layers.indexOf(layer), 1 );
25989
25989
  this.updateLayers();
25990
25990
  };
25991
25991
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-three",
3
- "version": "0.147.0",
3
+ "version": "0.147.1",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.js",
@@ -373,9 +373,9 @@ class WebXRManager extends EventDispatcher {
373
373
  };
374
374
 
375
375
  this.removeLayer = function(layer) {
376
+ layers.splice( layers.indexOf(layer), 1 );
376
377
  if (!window.XRWebGLBinding || !this.layersEnabled || !session) { return; }
377
378
 
378
- layers.splice( layers.indexOf(layer), 1 );
379
379
  this.updateLayers();
380
380
  };
381
381