Skip to content

Commit

Permalink
Dispose helper when removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Jul 16, 2024
1 parent df11093 commit af7caf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Inspector.prototype = {
const helper = this.helpers[node.uuid];
if (helper) {
this.sceneHelpers.remove(helper);
helper.dispose();
delete this.helpers[node.uuid];
Events.emit('helperremove', this.helpers[node.uuid]);
}
Expand Down

0 comments on commit af7caf6

Please sign in to comment.