Update foliage layer ID assignment to use tool mask check

This commit is contained in:
2026-05-02 11:26:42 +02:00
parent fff4916cb2
commit 516347b0e2

View File

@@ -9699,10 +9699,9 @@ export class ViewportHost {
tool: toolState.tool,
referenceHeight,
layerIndex: toolState.tool === "paint" ? toolState.layerIndex : null,
foliageLayerId:
toolState.tool === "foliagePaint" || toolState.tool === "foliageErase"
? toolState.foliageLayerId
: null
foliageLayerId: isTerrainFoliageLayerMaskTool(toolState.tool)
? toolState.foliageLayerId
: null
});
}