Browse Source

Merge pull request #812 from jusw85/fix-conversation-hidden-portrait

Fix showing hidden portrait in conversation
master
Steve Halliwell 5 years ago committed by GitHub
parent
commit
7f5f6716e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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