Browse Source

Fix showing hidden portrait in conversation

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

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

@ -423,7 +423,8 @@ 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