Browse Source

Fixed null reference error when no Fungus Script in scene.

master
chrisgregan 10 years ago
parent
commit
446dcb83d3
  1. 5
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

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

@ -34,6 +34,11 @@ namespace Fungus
{ {
// Ensure the Sequence Inspector is always showing the currently selected sequence // Ensure the Sequence Inspector is always showing the currently selected sequence
FungusScript fungusScript = GetFungusScript(); FungusScript fungusScript = GetFungusScript();
if (fungusScript == null)
{
return;
}
if (fungusScript.selectedSequence != null) if (fungusScript.selectedSequence != null)
{ {
if (sequenceInspector == null) if (sequenceInspector == null)

Loading…
Cancel
Save