@onerjs/core 8.53.3 → 8.53.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/core",
3
- "version": "8.53.3",
3
+ "version": "8.53.4",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
package/scene.pure.js CHANGED
@@ -526,10 +526,11 @@ export class Scene {
526
526
  this.onActiveCamerasChanged.notifyObservers(this);
527
527
  });
528
528
  }
529
- if (cameras !== this._activeCameras) {
529
+ const isChanged = cameras !== this._activeCameras;
530
+ this._activeCameras = cameras;
531
+ if (isChanged) {
530
532
  this.onActiveCamerasChanged.notifyObservers(this);
531
533
  }
532
- this._activeCameras = cameras;
533
534
  }
534
535
  /** Gets or sets the current active camera */
535
536
  get activeCamera() {