From 35d1387c7ad21b44e13c28bc7b7e87eff8bcb221 Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 2 Jan 2024 13:30:53 +0100 Subject: [PATCH] NetworkAnimator: OnSerialize more obvious syntax (parameter is always true due to the 'if initialstate' above it) --- Assets/Mirror/Components/NetworkAnimator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Components/NetworkAnimator.cs b/Assets/Mirror/Components/NetworkAnimator.cs index 295afccff..9b784bfe0 100644 --- a/Assets/Mirror/Components/NetworkAnimator.cs +++ b/Assets/Mirror/Components/NetworkAnimator.cs @@ -382,7 +382,7 @@ public override void OnSerialize(NetworkWriter writer, bool initialState) writer.WriteFloat(st.normalizedTime); writer.WriteFloat(animator.GetLayerWeight(i)); } - WriteParameters(writer, initialState); + WriteParameters(writer, true); } }