Skip to content

Commit

Permalink
Fix error when unselecting entity with Escape key (fix #684) (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Apr 18, 2023
1 parent dc3c485 commit 72fd461
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,14 @@ Inspector.prototype = {
if (entity === this.sceneEl) {
return;
}
entity.object3D.traverse((node) => {
if (this.helpers[node.uuid]) {
this.helpers[node.uuid].visible = true;
}
});

if (entity) {
entity.object3D.traverse((node) => {
if (this.helpers[node.uuid]) {
this.helpers[node.uuid].visible = true;
}
});
}
},

initEvents: function () {
Expand Down

0 comments on commit 72fd461

Please sign in to comment.