Skip to content

Commit

Permalink
Merge pull request #56 from mkc1370/fix/baked_data_preview
Browse files Browse the repository at this point in the history
長尺の音声をベイクすると"Hold on"でハングする問題を修正
  • Loading branch information
hecomi authored Dec 29, 2023
2 parents 68eac90 + 7a9320e commit 91658e9
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 91658e9

Please sign in to comment.