Fix stair placement to use local level height

This commit is contained in:
sudhir
2026-04-17 13:24:52 +05:30
parent 49836360ca
commit 4a97581b86
@@ -176,9 +176,7 @@ export const StairTool: React.FC = () => {
const gridX = Math.round(event.localPosition[0] * 2) / 2 const gridX = Math.round(event.localPosition[0] * 2) / 2
const gridZ = Math.round(event.localPosition[2] * 2) / 2 const gridZ = Math.round(event.localPosition[2] * 2) / 2
const y = event.localPosition[1] commitStairPlacement(currentLevelId, [gridX, 0, gridZ], rotationRef.current)
commitStairPlacement(currentLevelId, [gridX, y, gridZ], rotationRef.current)
} }
const onKeyDown = (event: KeyboardEvent) => { const onKeyDown = (event: KeyboardEvent) => {