From 98d151203aa1d176c886c24ca87395fb4869386c Mon Sep 17 00:00:00 2001 From: AmazingAlek Date: Sun, 9 Aug 2020 19:41:23 +0200 Subject: [PATCH] anim controller fix (#149) --- QSB/Animation/AnimationSync.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSB/Animation/AnimationSync.cs b/QSB/Animation/AnimationSync.cs index 1e5d3e00..8b47dfeb 100644 --- a/QSB/Animation/AnimationSync.cs +++ b/QSB/Animation/AnimationSync.cs @@ -79,10 +79,10 @@ namespace QSB.Animation { InitCommon(body); - _suitedAnimController = _bodyAnim.runtimeAnimatorController; - var playerAnimController = body.GetComponent(); playerAnimController.enabled = false; + + _suitedAnimController = playerAnimController.GetValue("_baseAnimController"); _unsuitedAnimController = playerAnimController.GetValue("_unsuitedAnimOverride"); _suitedGraphics = playerAnimController.GetValue("_suitedGroup"); _unsuitedGraphics = playerAnimController.GetValue("_unsuitedGroup");