From 3ec7e957de31084313478113937cdcf13ac297d0 Mon Sep 17 00:00:00 2001 From: Keijiro Takahashi Date: Thu, 24 Aug 2017 12:49:44 +0900 Subject: [PATCH] Added workaround for issue #18 --- Assets/Skinner/SkinnerSource.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Skinner/SkinnerSource.cs b/Assets/Skinner/SkinnerSource.cs index 9948709..75fb624 100644 --- a/Assets/Skinner/SkinnerSource.cs +++ b/Assets/Skinner/SkinnerSource.cs @@ -215,6 +215,12 @@ void LateUpdate() _camera.RenderWithShader(_replacementShaderTangent, "Skinner"); } + // We manually disable the skinned mesh renderer here because + // there is a regression from 2017.1.0 that prevents + // CallingStateController from being called in OnPostRender. + // This is a pretty hackish workaround, so FIXME later. + GetComponent().enabled = false; + _frameCount++; }