Skip to content

Commit bb9ff76

Browse files
update
Missed the return...
1 parent bb0b965 commit bb9ff76

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Components/NetworkRigidBodyBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,11 +890,9 @@ private void PostSetIsKinematic()
890890
{
891891
// switch it back to the original interpolation and exit early
892892
SetInterpolation(m_OriginalInterpolation);
893+
return;
893894
}
894895

895-
// Determine if the rigid body being used is configured for extrapolation.
896-
var isRigidbodyExtrapolating = HasInterpolationTypeSet(InterpolationTypes.Extrapolate);
897-
898896
// If the Rigidbody or Rigidbody2D is currently configured to extrapolate
899897
if (HasInterpolationTypeSet(InterpolationTypes.Extrapolate))
900898
{

0 commit comments

Comments
 (0)