Skip to content

Commit

Permalink
Merge pull request #3110 from vincentfretin/fix-gearvr-buttons-highlight
Browse files Browse the repository at this point in the history
fix Gear VR buttons highlighting (refs #3103)
  • Loading branch information
ngokevin authored Oct 2, 2017
2 parents 9b97286 + 27d6bad commit d2160c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/gearvr-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ module.exports.Component = registerComponent('gearvr-controls', {
var buttonMeshes;
if (!this.data.model) { return; }
buttonMeshes = this.buttonMeshes = {};
buttonMeshes.trigger = controllerObject3D.getObjectByName('Trigger');
buttonMeshes.trackpad = controllerObject3D.getObjectByName('Touchpad');
buttonMeshes.trigger = controllerObject3D.children[2];
buttonMeshes.trackpad = controllerObject3D.children[1];
},

onButtonChanged: function (evt) {
Expand Down

0 comments on commit d2160c6

Please sign in to comment.