From 921891f25581d37a1e4042d5612112cd5d74b027 Mon Sep 17 00:00:00 2001 From: Christopher Date: Fri, 29 Jul 2016 11:32:03 +0100 Subject: [PATCH] Fixed stage.Show() not fading in a previously faded out character if portrait hasn't changed. --- Assets/Fungus/Narrative/Scripts/PortraitController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Narrative/Scripts/PortraitController.cs b/Assets/Fungus/Narrative/Scripts/PortraitController.cs index e3b256ed..a70fa6be 100644 --- a/Assets/Fungus/Narrative/Scripts/PortraitController.cs +++ b/Assets/Fungus/Narrative/Scripts/PortraitController.cs @@ -511,7 +511,8 @@ namespace Fungus } // Fade in the new sprite image - if (options.character.state.portraitImage.sprite != options.portrait) + if (options.character.state.portraitImage.sprite != options.portrait || + options.character.state.portraitImage.color.a < 1f) { options.character.state.portraitImage.sprite = options.portrait; options.character.state.portraitImage.color = new Color(1f, 1f, 1f, 0f);