From d34f795f27cd4048667372f2d053f8cf1cc576c5 Mon Sep 17 00:00:00 2001 From: Christopher Date: Mon, 23 Jan 2017 14:43:28 +0000 Subject: [PATCH] Fixed Flowchart prefab's block show as empty on the Inspector #583 --- Assets/Fungus/Scripts/Editor/FlowchartWindow.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs index 46c0bfac..59829ed9 100644 --- a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs +++ b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs @@ -167,9 +167,15 @@ namespace Fungus.EditorUtils return; } + bool isActive = flowchart.IsActive(); + if (PrefabUtility.GetPrefabType(flowchart.gameObject) == PrefabType.Prefab) + { + isActive = true; + } + if (Selection.activeGameObject == null && flowchart.SelectedBlock != null && - flowchart.IsActive()) + isActive) { if (blockInspector == null) {