Browse Source

Null pointer check to prevent log errors

master
chrisgregan 11 years ago
parent
commit
167c17a29f
  1. 3
      Assets/Fungus/Editor/FungusScript/FungusCommandEditor.cs

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

@ -14,8 +14,11 @@ namespace Fungus.Script
void OnEnable()
{
FungusCommand t = target as FungusCommand;
if (t != null)
{
t.hideFlags = HideFlags.HideInInspector;
}
}
public override void OnInspectorGUI()
{

Loading…
Cancel
Save