From fe021f8fe7f908873f557ecc96a65a3ede940af7 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Mon, 6 Sep 2021 14:21:49 -0400 Subject: [PATCH] fix: updated NetworkTransform2k test --- Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs b/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs index 2b9cdab67..748ae3fb9 100644 --- a/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs +++ b/Assets/Mirror/Tests/Editor/NetworkTransform2kTests.cs @@ -172,6 +172,9 @@ public void ApplySnapshot_DontSyncPosition() component.syncPosition = false; component.syncRotation = true; component.syncScale = true; + component.interpolatePosition = false; + component.interpolateRotation = true; + component.interpolateScale = true; component.ApplySnapshot(default, default, new NTSnapshot(0, 0, position, rotation, scale)); // was it applied? @@ -192,6 +195,9 @@ public void ApplySnapshot_DontSyncRotation() component.syncPosition = true; component.syncRotation = false; component.syncScale = true; + component.interpolatePosition = true; + component.interpolateRotation = false; + component.interpolateScale = true; component.ApplySnapshot(default, default, new NTSnapshot(0, 0, position, rotation, scale)); // was it applied? @@ -212,6 +218,9 @@ public void ApplySnapshot_DontSyncScale() component.syncPosition = true; component.syncRotation = true; component.syncScale = false; + component.interpolatePosition = true; + component.interpolateRotation = true; + component.interpolateScale = false; component.ApplySnapshot(default, default, new NTSnapshot(0, 0, position, rotation, scale)); // was it applied?