Skip to content

Commit

Permalink
fix: weight animation wasn't properly exported
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 5, 2022
1 parent 1cc8d7d commit 2acdce3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,9 +1048,9 @@ public void RemoveUnneededKeyframes(ref float[] times, ref object[] values)
}
else
{
t2.Add(times[0]);
var singleFrameWeights = new object[arraySize];
Array.Copy(values, 0, singleFrameWeights, 0, arraySize);
t2.Add(times[0]);
v2.AddRange(singleFrameWeights);

int lastExportedIndex = 0;
Expand All @@ -1062,6 +1062,7 @@ public void RemoveUnneededKeyframes(ref float[] times, ref object[] values)
{
Array.Copy(values, (i - 1) * arraySize, singleFrameWeights, 0, arraySize);
v2.AddRange(singleFrameWeights);
t2.Add(times[i]);
}

removeAnimationUnneededKeyframesCheckIdenticalMarker.End();
Expand Down

0 comments on commit 2acdce3

Please sign in to comment.