Skip to content

Commit

Permalink
fix: byte stride warning, fix: humanoid recording
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Oct 19, 2022
1 parent ad6e6b1 commit f54fe62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ public void AddAnimationData(Object animatedObject, string propertyName, GLTFAni
break;
}

if (Tsampler.Output != null) Tsampler.Output.Value.BufferView.Value.ByteStride = 0;
if (Tsampler2.Output != null) Tsampler2.Output.Value.BufferView.Value.ByteStride = 0;

Tchannel.Sampler = new AnimationSamplerId
{
Id = animation.Samplers.Count,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,9 @@ public void SampleIfChanged(double time)
public void Update(double time)
{
#if USE_ANIMATION_POINTER
if(recordAnimationPointer)
foreach (var track in tracks)
{
foreach (var track in tracks)
{
track.SampleIfChanged(time);
}

return;
track.SampleIfChanged(time);
}
#endif

Expand Down

0 comments on commit f54fe62

Please sign in to comment.