Add foliage blocker mask value handling to brush stroke
This commit is contained in:
@@ -9829,6 +9829,7 @@ export class ViewportHost {
|
||||
typeof applyTerrainBrushStampInPlace
|
||||
>["foliageMaskValueIndices"];
|
||||
foliageMaskValueKeys?: readonly string[];
|
||||
foliageBlockerMaskValueIndices?: readonly number[];
|
||||
}
|
||||
) {
|
||||
for (const sampleIndex of result.heightSampleIndices) {
|
||||
@@ -9851,6 +9852,10 @@ export class ViewportHost {
|
||||
for (const foliageMaskValueKey of result.foliageMaskValueKeys ?? []) {
|
||||
stroke.foliageMaskValueKeys.add(foliageMaskValueKey);
|
||||
}
|
||||
|
||||
for (const maskIndex of result.foliageBlockerMaskValueIndices ?? []) {
|
||||
stroke.foliageBlockerMaskValueIndices.add(maskIndex);
|
||||
}
|
||||
}
|
||||
|
||||
private beginTerrainBrushStroke(event: PointerEvent): boolean {
|
||||
|
||||
Reference in New Issue
Block a user