From d1b76a096c6adf4779d83a5a31a2bcd652a4ad01 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 23 Mar 2016 12:34:19 +0000 Subject: [PATCH] Fixed hide portrait before show portrait breaks portrait system #384 --- Assets/Fungus/Narrative/Scripts/Commands/Portrait.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Fungus/Narrative/Scripts/Commands/Portrait.cs b/Assets/Fungus/Narrative/Scripts/Commands/Portrait.cs index e7be2eea..7a81381c 100755 --- a/Assets/Fungus/Narrative/Scripts/Commands/Portrait.cs +++ b/Assets/Fungus/Narrative/Scripts/Commands/Portrait.cs @@ -136,6 +136,14 @@ namespace Fungus return; } + // Early out if hiding a character that's already hidden + if (display == DisplayType.Hide && + !character.state.onScreen) + { + Continue(); + return; + } + // Use default settings if (useDefaultSettings) {