Add foliage blocker mask value handling to brush stroke

This commit is contained in:
2026-05-02 11:27:04 +02:00
parent 516347b0e2
commit d187b0f600

View File

@@ -9829,6 +9829,7 @@ export class ViewportHost {
typeof applyTerrainBrushStampInPlace typeof applyTerrainBrushStampInPlace
>["foliageMaskValueIndices"]; >["foliageMaskValueIndices"];
foliageMaskValueKeys?: readonly string[]; foliageMaskValueKeys?: readonly string[];
foliageBlockerMaskValueIndices?: readonly number[];
} }
) { ) {
for (const sampleIndex of result.heightSampleIndices) { for (const sampleIndex of result.heightSampleIndices) {
@@ -9851,6 +9852,10 @@ export class ViewportHost {
for (const foliageMaskValueKey of result.foliageMaskValueKeys ?? []) { for (const foliageMaskValueKey of result.foliageMaskValueKeys ?? []) {
stroke.foliageMaskValueKeys.add(foliageMaskValueKey); stroke.foliageMaskValueKeys.add(foliageMaskValueKey);
} }
for (const maskIndex of result.foliageBlockerMaskValueIndices ?? []) {
stroke.foliageBlockerMaskValueIndices.add(maskIndex);
}
} }
private beginTerrainBrushStroke(event: PointerEvent): boolean { private beginTerrainBrushStroke(event: PointerEvent): boolean {