|
|
|
@ -2359,9 +2359,11 @@ AFRAME.registerComponent('dynamic-unless-picked', { |
|
|
|
|
let el = this.el |
|
|
|
|
el.setAttribute('dynamic-body', "") |
|
|
|
|
this.el.addEventListener('picked', function (event) { |
|
|
|
|
el.removeAttribute('dynamic-body') |
|
|
|
|
el.setAttribute('static-body', "") |
|
|
|
|
}) |
|
|
|
|
this.el.addEventListener('released', function (event) { |
|
|
|
|
el.removeAttribute('static-body') |
|
|
|
|
el.setAttribute('dynamic-body', "") |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|