diff --git a/src/editor/engine/GameRuntime.js b/src/editor/engine/GameRuntime.js index c329e0a..58ec24b 100644 --- a/src/editor/engine/GameRuntime.js +++ b/src/editor/engine/GameRuntime.js @@ -4314,6 +4314,11 @@ export class GameRuntime { const id = t.id ?? t.ref; this.scene3d?.primitiveManager?.removeInstance(id); } + // Снять interact-подсказку удалённого объекта (иначе «E» висит на пустоте). + if (t.kind && (t.ref ?? t.id) != null && Array.isArray(this._interactables)) { + const ref = t.kind + ':' + (t.ref ?? t.id); + this._interactables = this._interactables.filter(it => it.ref !== ref); + } this.scheduleSceneSnapshot(); } catch (e) { // eslint-disable-next-line no-console