change way messages get sent to the hand disabler

This commit is contained in:
James Pollack 2015-11-28 22:54:31 -08:00
parent 8daeb0fa0d
commit 017ffb8f2e

View file

@ -158,7 +158,10 @@
this.isGrabbed = true;
this.initialHand = this.hand;
Messages.sendMessage('Hifi-Beam-Disabler', this.initialHand);
//disable the opposite hand in handControllerGrab.js by message
var handToDisable = this.initialHand === 'right' ? 'left' : 'right';
Messages.sendMessage('Hifi-Hand-Disabler', handToDisable);
setEntityCustomData('grabbableKey', this.entityID, {
grabbable: false,