Browse Source

Fixed stage.Show() not fading in a previously faded out character if portrait hasn't changed.

master
Christopher 9 years ago
parent
commit
921891f255
  1. 3
      Assets/Fungus/Narrative/Scripts/PortraitController.cs

3
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);

Loading…
Cancel
Save