Browse Source

Fixed Flowchart prefab's block show as empty on the Inspector #583

master
Christopher 8 years ago
parent
commit
d34f795f27
  1. 8
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

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

Loading…
Cancel
Save