Skip to content

Commit

Permalink
particle fix (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmriggs committed Jan 25, 2022
1 parent 486e59c commit 80b97b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ACViewer/Physics/PartArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ public void UpdateParts(AFrame frame)

for (var i = 0; i < numParts; i++)
{
// should particles have this populated?
if (Parts[i] == null) continue;

var curPartFrame = curFrame != null ? new AFrame(curFrame.Frames[i]) : new AFrame(Vector3.Zero, Quaternion.Identity);

Parts[i].Pos.Frame.Combine(frame, curPartFrame, Scale);
Expand Down

0 comments on commit 80b97b2

Please sign in to comment.