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,
|
tool: toolState.tool,
|
||||||
referenceHeight,
|
referenceHeight,
|
||||||
layerIndex: toolState.tool === "paint" ? toolState.layerIndex : null,
|
layerIndex: toolState.tool === "paint" ? toolState.layerIndex : null,
|
||||||
foliageLayerId:
|
foliageLayerId: isTerrainFoliageLayerMaskTool(toolState.tool)
|
||||||
toolState.tool === "foliagePaint" || toolState.tool === "foliageErase"
|
? toolState.foliageLayerId
|
||||||
? toolState.foliageLayerId
|
: null
|
||||||
: null
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user