Browse Source

Fixed Flowchart component being hidden by accident.

master
Christopher 9 years ago
parent
commit
5c8f5f4214
  1. 12
      Assets/Fungus/Flowchart/Scripts/Flowchart.cs

12
Assets/Fungus/Flowchart/Scripts/Flowchart.cs

@ -871,15 +871,13 @@ namespace Fungus
{ {
if (hideComponents) if (hideComponents)
{ {
IBlock[] blocks = GetComponents<IBlock>(); Block[] blocks = GetComponents<Block>();
foreach (IBlock block in blocks) foreach (Block block in blocks)
{ {
GameObject go = ((Block)block).gameObject; block.hideFlags = HideFlags.HideInInspector;
if (block.gameObject != gameObject)
go.hideFlags = HideFlags.HideInInspector;
if (go != gameObject)
{ {
go.hideFlags = HideFlags.HideInHierarchy; block.hideFlags = HideFlags.HideInHierarchy;
} }
} }

Loading…
Cancel
Save