Allow stair side clicks to target side materials

This commit is contained in:
sudhir
2026-04-20 12:04:43 +05:30
parent 4f9b822e54
commit 05002a7865
@@ -108,6 +108,10 @@ function resolveStairMaterialTarget(
return 'railing' return 'railing'
} }
if (hitObjectName.startsWith('stair-side')) {
return 'side'
}
if (event.materialIndex === 0) { if (event.materialIndex === 0) {
return 'tread' return 'tread'
} }