Fix optional chaining in setBoxBrushAllFaceMaterialsCommand.ts

This commit is contained in:
2026-04-15 07:56:08 +02:00
parent d576bfe1e3
commit b761514a71

View File

@@ -46,7 +46,7 @@ export function createSetBoxBrushAllFaceMaterialsCommand(
previousMaterialIds = Object.fromEntries(
getBrushFaceIds(currentBrush).map((faceId) => [
faceId,
currentBrush.faces[faceId]?.materialId ?? null
currentBrush.faces[faceId].materialId
])
);
}