Skip to content

Commit

Permalink
fix: NRE on contact initialization (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed May 12, 2024
1 parent 2a2a7ce commit caebd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/VRChat/ForceReinitPhysBonesHook.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#region

using System;
using UnityEngine;
using VRC.Dynamics;
using VRC.SDK3.Dynamics.Contact.Components;
Expand Down Expand Up @@ -38,7 +39,6 @@ public bool OnPreprocessAvatar(GameObject avatarGameObject)
foreach (var contact in avatarGameObject.GetComponentsInChildren<ContactBase>(true))
{
contact.UpdateShape();
contact.UpdateContact();
}
}

Expand Down

0 comments on commit caebd8a

Please sign in to comment.