From af7caf69227b8228fc70854c70bec98643b382d7 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Tue, 16 Jul 2024 12:27:09 +0200 Subject: [PATCH] Dispose helper when removing it --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 5f0e53bb..e0f6adf3 100644 --- a/src/index.js +++ b/src/index.js @@ -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]); }