Skip to content

Commit

Permalink
fix: sync initial armarker wireframe w/ dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Oct 6, 2022
1 parent 66d3988 commit 3cb1e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/armarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ AFRAME.registerComponent('armarker', {
this.update();
this.system.registerComponent(this);
if (this.data.buildable) { // Toggle clientside dynamic
this.el.setAttribute('material', 'wireframe', this.data.dynamic);
this.el.setAttribute('click-listener', true);
this.el.addEventListener('mousedown', (evt) => {
if (evt.detail.cursorEl) { // Only track native click event
Expand Down

0 comments on commit 3cb1e2c

Please sign in to comment.