Browse Source

Always expand variables window if variable count is 0

master
chrisgregan 10 years ago
parent
commit
d76aa29f62
  1. 5
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs

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

@ -56,6 +56,11 @@ namespace Fungus
FungusScript t = target as FungusScript; FungusScript t = target as FungusScript;
if (t.variables.Count == 0)
{
t.variablesExpanded = true;
}
if (!t.variablesExpanded) if (!t.variablesExpanded)
{ {
if (GUILayout.Button ("Variables", GUILayout.Height(24))) if (GUILayout.Button ("Variables", GUILayout.Height(24)))

Loading…
Cancel
Save