diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 0497858e..2ef2d327 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -4977,6 +4977,23 @@ export class ViewportHost { ); } + private addCameraRigRailPreviewPathIds( + affectedIds: AffectedSelectionIds, + selection: EditorSelection + ) { + if (this.currentDocument === null || selection.kind !== "entities") { + return; + } + + for (const entityId of selection.ids) { + const entity = this.currentDocument.entities[entityId]; + + if (entity?.kind === "cameraRig" && entity.rigType === "rail") { + affectedIds.pathIds.add(entity.pathId); + } + } + } + private applyEntityRenderObjectTransform(entity: EntityInstance) { const renderObjects = this.entityRenderObjects.get(entity.id);