From e6b2a3ccc09f5e750000a55df51dfd55ac1fcb32 Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Mon, 23 Sep 2024 11:24:04 +0200 Subject: [PATCH] FaceFilter: don't save index if it's the first one --- package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts b/package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts index 7ded8aef..059c0ed0 100644 --- a/package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts +++ b/package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts @@ -114,7 +114,7 @@ export class NeedleFilterTrackingManager extends Behaviour { // } if (index >= 0 && index < this.filters.length && typeof index === "number") { this._activeFilterIndex = index; - setParamWithoutReload("facefilter", index.toString()); + setParamWithoutReload("facefilter", index > 0 ? index.toString() : null); // preload the next filter const nextIndex = (index + 1) % this.filters.length;