Skip to content

Commit

Permalink
fix baked data preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkc1370 committed Oct 10, 2023
1 parent 061f029 commit 7a9320e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/uLipSync/Editor/BakedDataEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ void DrawFrames(Rect rect)

for (int j = 0; j < phonemeCount; ++j)
{
var points = new Vector3[n];
var pointsCount = Mathf.Min(n, maxN);
var points = new Vector3[pointsCount];

for (int i = 0; i < n; ++i)
for (int i = 0; i < pointsCount; ++i)
{
var index = Mathf.Min(i * skip, data.frames.Count - 1);
var frame = data.frames[index];
Expand Down

0 comments on commit 7a9320e

Please sign in to comment.