Skip to content

Commit

Permalink
fix: 🐛 v2 models motion path was incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaroma committed Apr 4, 2024
1 parent 8444cbe commit c791c2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/live2d/Live2D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,10 @@ const Live2DView: React.FC<unknown> = () => {
motionName = motionName.slice(0, -5);
} else if (
motionName?.startsWith("sub") ||
motionName?.startsWith("clb")
motionName?.startsWith("clb") ||
motionName.match(/^v2_\d{2}.*/)
) {
motionName = motionName.split("_").slice(0, 2).join("_");
} else if (motionName.startsWith("v2")) {
motionName = motionName.split("_")[1]!;
} else {
motionName = motionName.split("_")[0]!;
}
Expand Down

0 comments on commit c791c2a

Please sign in to comment.