Skip to content

Commit

Permalink
fix: Sync full netAnimator for new clients, fix #980 (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Sep 24, 2019
1 parent d91b387 commit db8310f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/Mirror/Components/NetworkAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ ulong NextDirtyBits()
return dirtyBits;
}

bool WriteParameters(NetworkWriter writer)
bool WriteParameters(NetworkWriter writer, bool forceAll = false)
{
ulong dirtyBits = NextDirtyBits();
ulong dirtyBits = forceAll ? (~0ul) : NextDirtyBits();
writer.WritePackedUInt64(dirtyBits);
for (int i = 0; i < parameters.Length; i++)
{
Expand Down Expand Up @@ -318,7 +318,7 @@ public override bool OnSerialize(NetworkWriter writer, bool forceAll)
writer.WriteSingle(st.normalizedTime);
}
}
WriteParameters(writer);
WriteParameters(writer, forceAll);
return true;
}
return false;
Expand Down

0 comments on commit db8310f

Please sign in to comment.