From 9490e80ee7729c1b7fde207a6b14df232f988391 Mon Sep 17 00:00:00 2001 From: Justin Wong Date: Tue, 31 Mar 2020 21:38:56 +0800 Subject: [PATCH] Fix showing hidden portrait in conversation Fixes #811. --- Assets/Fungus/Scripts/Utils/ConversationManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Utils/ConversationManager.cs b/Assets/Fungus/Scripts/Utils/ConversationManager.cs index 7415d4e1..0b6bb775 100644 --- a/Assets/Fungus/Scripts/Utils/ConversationManager.cs +++ b/Assets/Fungus/Scripts/Utils/ConversationManager.cs @@ -422,8 +422,9 @@ namespace Fungus } if (stage != null && currentCharacter != null && - (currentPortrait != currentCharacter.State.portrait || - currentPosition != currentCharacter.State.position)) + (currentPortrait != currentCharacter.State.portrait || + currentPosition != currentCharacter.State.position || + (currentCharacter.State.display == DisplayType.Hide && !item.Hide))) { var portraitOptions = new PortraitOptions(true); portraitOptions.display = item.Hide ? DisplayType.Hide : DisplayType.Show;