From 4a97581b86318a879e7bcfa3484d2ec090dbe1a3 Mon Sep 17 00:00:00 2001 From: sudhir Date: Fri, 17 Apr 2026 13:24:52 +0530 Subject: [PATCH] Fix stair placement to use local level height --- packages/editor/src/components/tools/stair/stair-tool.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/editor/src/components/tools/stair/stair-tool.tsx b/packages/editor/src/components/tools/stair/stair-tool.tsx index db51c3ec..73d033cc 100644 --- a/packages/editor/src/components/tools/stair/stair-tool.tsx +++ b/packages/editor/src/components/tools/stair/stair-tool.tsx @@ -176,9 +176,7 @@ export const StairTool: React.FC = () => { const gridX = Math.round(event.localPosition[0] * 2) / 2 const gridZ = Math.round(event.localPosition[2] * 2) / 2 - const y = event.localPosition[1] - - commitStairPlacement(currentLevelId, [gridX, y, gridZ], rotationRef.current) + commitStairPlacement(currentLevelId, [gridX, 0, gridZ], rotationRef.current) } const onKeyDown = (event: KeyboardEvent) => {