Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Dec 18, 2024
1 parent 929ddae commit 233b71e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/components/camera/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ class CameraComponent extends Component {
set layers(newValue) {
const oldLayers = this._camera.layers;
const scene = this.system.app.scene;

// Remove from old layers
oldLayers.forEach(layerId => {
oldLayers.forEach((layerId) => {
const layer = scene.layers.getLayerById(layerId);
layer?.removeCamera(this);
});
Expand All @@ -658,7 +658,7 @@ class CameraComponent extends Component {

// Only add to new layers if enabled
if (this.enabled && this.entity.enabled) {
newValue.forEach(layerId => {
newValue.forEach((layerId) => {
const layer = scene.layers.getLayerById(layerId);
layer?.addCamera(this);
});
Expand Down

0 comments on commit 233b71e

Please sign in to comment.