auto-git:

[change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-05-02 11:27:47 +02:00
parent c2c4a18527
commit 577121d92c

View File

@@ -9723,6 +9723,7 @@ export class ViewportHost {
heightSampleIndices: number[]; heightSampleIndices: number[];
paintWeightIndices: number[]; paintWeightIndices: number[];
foliageMaskValueKeys: string[]; foliageMaskValueKeys: string[];
foliageBlockerMaskValueIndices: number[];
lastAppliedPoint: { lastAppliedPoint: {
x: number; x: number;
z: number; z: number;
@@ -9740,6 +9741,7 @@ export class ViewportHost {
heightSampleIndices: [], heightSampleIndices: [],
paintWeightIndices: [], paintWeightIndices: [],
foliageMaskValueKeys: [], foliageMaskValueKeys: [],
foliageBlockerMaskValueIndices: [],
lastAppliedPoint: from lastAppliedPoint: from
}; };
} }
@@ -9749,6 +9751,7 @@ export class ViewportHost {
const heightSampleIndices = new Set<number>(); const heightSampleIndices = new Set<number>();
const paintWeightIndices = new Set<number>(); const paintWeightIndices = new Set<number>();
const foliageMaskValueKeys = new Set<string>(); const foliageMaskValueKeys = new Set<string>();
const foliageBlockerMaskValueIndices = new Set<number>();
let lastAppliedPoint = from; let lastAppliedPoint = from;
const stepCount = Math.floor(distance / spacing); const stepCount = Math.floor(distance / spacing);
const mergeDirtyBounds = (nextBounds: TerrainBrushDirtySampleBounds | null) => { const mergeDirtyBounds = (nextBounds: TerrainBrushDirtySampleBounds | null) => {
@@ -9807,6 +9810,9 @@ export class ViewportHost {
) )
); );
} }
for (const maskIndex of result.foliageBlockerMaskValueIndices) {
foliageBlockerMaskValueIndices.add(maskIndex);
}
lastAppliedPoint = point; lastAppliedPoint = point;
} }
@@ -9816,6 +9822,7 @@ export class ViewportHost {
heightSampleIndices: [...heightSampleIndices], heightSampleIndices: [...heightSampleIndices],
paintWeightIndices: [...paintWeightIndices], paintWeightIndices: [...paintWeightIndices],
foliageMaskValueKeys: [...foliageMaskValueKeys], foliageMaskValueKeys: [...foliageMaskValueKeys],
foliageBlockerMaskValueIndices: [...foliageBlockerMaskValueIndices],
lastAppliedPoint lastAppliedPoint
}; };
} }