Update foliage layer ID assignment to use tool mask check
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user