apply cursor to hand entity directly

This commit is contained in:
Kevin Ngo
2018-09-20 17:43:12 -07:00
parent 164010d7fd
commit eb234e7999
2 changed files with 8 additions and 11 deletions

View File

@@ -79,7 +79,7 @@ AFRAME.registerComponent('saber-controls', {
this.controllerConnected = true;
this.controllerType = evt.detail.name;
el.querySelector('.raycaster').setAttribute('cursor', controllerConfig.cursor || {});
el.setAttribute('cursor', controllerConfig.cursor || {});
},
config: {