From 858077052ece367766a57354665dc18fd7106599 Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 28 Oct 2024 11:45:48 +0100 Subject: [PATCH] reset last deserialized too --- .../NetworkTransform/NetworkTransformHybrid2022.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index bc1db850e90..695485798d6 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -972,11 +972,14 @@ public virtual void Reset() // reset baseline lastSerializedBaselineTick = 0; - lastDeserializedBaselineTick = 0; lastSerializedBaselinePosition = Vector3.zero; lastSerializedBaselineRotation = Quaternion.identity; baselineDirty = true; + lastDeserializedBaselineTick = 0; + lastDeserializedBaselinePosition = Vector3.zero; + lastDeserializedBaselineRotation = Quaternion.identity; + // Debug.Log($"[{name}] Reset to baselineTick=0"); }