change to not left button

This commit is contained in:
David Back 2018-04-27 13:32:05 -07:00
parent 0962e1fc16
commit 61afd12eeb

View file

@ -796,7 +796,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
};
var onMousePress = function(event) {
if (isInEditMode() || event.isRightButton) { // don't consider any mouse clicks on the entity while in edit
if (isInEditMode() || !event.isLeftButton) { // don't consider any left clicks on the entity while in edit
return;
}
var pickRay = Camera.computePickRay(event.x, event.y);