Browse Source

Fix showing hidden portrait in conversation

Fixes #811.
master
Justin Wong 5 years ago
parent
commit
9490e80ee7
  1. 5
      Assets/Fungus/Scripts/Utils/ConversationManager.cs

5
Assets/Fungus/Scripts/Utils/ConversationManager.cs

@ -422,8 +422,9 @@ namespace Fungus
} }
if (stage != null && currentCharacter != null && if (stage != null && currentCharacter != null &&
(currentPortrait != currentCharacter.State.portrait || (currentPortrait != currentCharacter.State.portrait ||
currentPosition != currentCharacter.State.position)) currentPosition != currentCharacter.State.position ||
(currentCharacter.State.display == DisplayType.Hide && !item.Hide)))
{ {
var portraitOptions = new PortraitOptions(true); var portraitOptions = new PortraitOptions(true);
portraitOptions.display = item.Hide ? DisplayType.Hide : DisplayType.Show; portraitOptions.display = item.Hide ? DisplayType.Hide : DisplayType.Show;

Loading…
Cancel
Save