Skip to content

Commit

Permalink
FaceFilter: don't save index if it's the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Sep 23, 2024
1 parent 8b7e3ca commit e6b2a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Runtime/Facefilter/FaceFilter~/src/FaceFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6b2a3c

Please sign in to comment.