www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 39e598d91fec5c26e0793d2936a8652339fe9001
parent 63b22b9b569e20cea05eeaa5d6af1b571138c2a2
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Wed,  9 Oct 2024 19:07:51 -0700

Delete furniture when furniture map is deleted

In the future deleting the furniture map won't delete the furniture
because it will be accessable in a defined furniture panel (which
can be culled separately) but for now it's a leak of resources since
they cannot otherwise be deleted.

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -527,6 +527,8 @@ export class FloorplanEditor { if (backend.idType(id) === "pntmap") { this.backend.unmapPoints(id) } else if (backend.idType(id) === "furmap") { + // For now, just remove the furniture too + later.push(this.backend.reqObj(id).furniture_id) this.backend.unmapFurniture(id) } else { later.push(id)