Skip to content

Commit

Permalink
let display:all always try to auto-enter VR (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
machenmusik authored and dmarcos committed Jan 24, 2017
1 parent 8cea4da commit 8fa704d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/scene/auto-enter-vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports.Component = registerComponent('auto-enter-vr', {
if (!data.enabled) { return false; }
// if we have a data string to match against display name, try and get it;
// if we can't get display name, or it doesn't match, we should not auto-enter VR
if (data.display) {
if (data.display && data.display !== 'all') {
var display = scene.effect && scene.effect.getVRDisplay && scene.effect.getVRDisplay();
if (!display || !display.displayName || display.displayName.indexOf(data.display) < 0) { return false; }
}
Expand Down

0 comments on commit 8fa704d

Please sign in to comment.