Restore bladeEnabled flag

This commit is contained in:
Diego Marcos
2018-09-28 12:40:28 -07:00
parent b84b9b1f95
commit 46d5e8bc2a
2 changed files with 2 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
AFRAME.registerComponent('saber-controls', {
schema: {
bladeEnabled: {default: false},
enabled: {default: false},
hand: {default: 'right', oneOf: ['left', 'right']}
},

View File

@@ -75,6 +75,7 @@
bind__hand-swapper="enabled: {{ otherHand }}RaycasterActive"
bind__pauser="enabled: !menu.active"
bind__raycaster="enabled: {{ hand }}RaycasterActive"
bind__saber-controls="bladeEnabled: !menu.active"
haptics="events: mouseenter; dur: 35; force: 0.075"
saber-controls="hand: {{ hand }}">