From 5fb9a9cafc5106f39617735d2c8db26305c0e95e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 13:20:04 +0200 Subject: [PATCH] Support path clip intervals in spline repeater rendering --- src/spline-corridor/spline-repeater-renderer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spline-corridor/spline-repeater-renderer.ts b/src/spline-corridor/spline-repeater-renderer.ts index b6c282c0..b78bf515 100644 --- a/src/spline-corridor/spline-repeater-renderer.ts +++ b/src/spline-corridor/spline-repeater-renderer.ts @@ -19,10 +19,12 @@ import { type SplineRepeaterInstance, type SplineRepeaterPathLike } from "./spline-repeaters"; +import type { SplineCorridorPathClipIntervalMap } from "./spline-corridor-clips"; interface SplineRepeaterRendererInput { paths: readonly SplineRepeaterPathLike[]; terrains: readonly Terrain[]; + clipIntervalsByPath?: SplineCorridorPathClipIntervalMap; } interface SplineRepeaterRendererOptions { @@ -198,7 +200,8 @@ export class SplineRepeaterRenderer { const instances = input.paths.flatMap((path) => deriveSplineRepeaterInstances({ path, - terrains: input.terrains + terrains: input.terrains, + clipIntervals: input.clipIntervalsByPath?.get(path.id) }) ); const nextGroup = new Group();