Browse Source

Don't render connected sequences in other fungus scripts

master
chrisgregan 10 years ago
parent
commit
84447e6d7b
  1. 2
      Assets/Fungus/Dialog/Commands/AddOption.cs
  2. 3
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

2
Assets/Fungus/Dialog/Commands/AddOption.cs

@ -52,7 +52,7 @@ namespace Fungus
{
if (targetSequence != null)
{
connectedSequences.Add (targetSequence);
connectedSequences.Add(targetSequence);
}
}

3
Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

@ -345,7 +345,8 @@ namespace Fungus
foreach (Sequence sequenceB in connectedSequences)
{
if (sequenceB == null)
if (sequenceB == null ||
sequenceB.GetFungusScript() != fungusScript)
{
continue;
}

Loading…
Cancel
Save