Skip to content

Commit

Permalink
fix(scene-options): fixed incorrrect warning when missing clickableOn…
Browse files Browse the repository at this point in the history
…lyEvents option
  • Loading branch information
mwfarb committed Sep 23, 2024
1 parent b3f76bd commit 58cab4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/core/arena.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ AFRAME.registerSystem('arena-scene', {
});
}

if (!sceneOptions.clickableOnlyEvents ?? true) {
if (typeof sceneOptions.clickableOnlyEvents !== 'undefined' && !sceneOptions.clickableOnlyEvents) {
// unusual case: clickableOnlyEvents = true by default, add warning...
this.health.addError('scene-options.allObjectsClickable');
}
Expand Down

0 comments on commit 58cab4d

Please sign in to comment.