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) {