From 91e2af395659d0b8b8f671e26aafc9b2b4cb9132 Mon Sep 17 00:00:00 2001 From: Assaf Inbal Date: Sat, 5 Oct 2024 20:57:15 +0300 Subject: [PATCH] Take into consideration the elevation of the level Each piece of furniture in SH3D has it's position in 3D space including its elevation. That the elevation is relative to the floor of the level it's placed in. When calculating the 2D-projected location of an entity we observe the building in 3D space with all of its levels so it wasn't enough to use the relative elevation of the entity but we need to offset it with the elevation of the entire floor. Fixes #82, for real (I hope) --- src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java b/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java index 9b545b1..5064d8a 100644 --- a/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java +++ b/src/com/shmuelzon/HomeAssistantFloorPlan/Controller.java @@ -743,7 +743,8 @@ private void _getCombinations(List inputList, int currentIndex, List