@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 +1 -1
- package/scene.pure.js +3 -2
- package/scene.pure.js.map +1 -1
package/package.json
CHANGED
package/scene.pure.js
CHANGED
|
@@ -526,10 +526,11 @@ export class Scene {
|
|
|
526
526
|
this.onActiveCamerasChanged.notifyObservers(this);
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
|
|
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() {
|