From 4f9ee55f3d8a41d3b9a04d9f31368d30b71b399a Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sat, 15 Jan 2022 18:08:17 -0800 Subject: [PATCH] revert network animator "fix" --- Mirror/Components/NetworkAnimator.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Mirror/Components/NetworkAnimator.cs b/Mirror/Components/NetworkAnimator.cs index f067d276..cc925a92 100644 --- a/Mirror/Components/NetworkAnimator.cs +++ b/Mirror/Components/NetworkAnimator.cs @@ -81,18 +81,14 @@ namespace Mirror lastIntParameters = new int[parameters.Length]; lastFloatParameters = new float[parameters.Length]; lastBoolParameters = new bool[parameters.Length]; + + animationHash = new int[animator.layerCount]; + transitionHash = new int[animator.layerCount]; + layerWeight = new float[animator.layerCount]; } void FixedUpdate() { - // QSB: move array init here since layerCount will not be 0 - if (animationHash == null) - { - animationHash = new int[animator.layerCount]; - transitionHash = new int[animator.layerCount]; - layerWeight = new float[animator.layerCount]; - } - if (!SendMessagesAllowed) return;