Update tool state to manage foliage layer ID

This commit is contained in:
2026-05-02 04:13:26 +02:00
parent 87ad6c2afb
commit 0c323670a5

View File

@@ -9560,7 +9560,11 @@ export class ViewportHost {
settings: toolState,
tool: toolState.tool,
referenceHeight,
layerIndex: toolState.tool === "paint" ? toolState.layerIndex : null
layerIndex: toolState.tool === "paint" ? toolState.layerIndex : null,
foliageLayerId:
toolState.tool === "foliagePaint" || toolState.tool === "foliageErase"
? toolState.foliageLayerId
: null
});
}