Browse Source

Fixed custom editor for ElseIf command #630

master
Chris Gregan 8 years ago
parent
commit
73a179484c
  1. 6
      Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs
  2. 0
      Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs.meta

6
Assets/Fungus/Scripts/Editor/IfEditor.cs → Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs

@ -7,8 +7,8 @@ using System.Collections.Generic;
namespace Fungus.EditorUtils
{
[CustomEditor (typeof(If), true)]
public class IfEditor : CommandEditor
[CustomEditor (typeof(VariableCondition), true)]
public class VariableConditionEditor : CommandEditor
{
protected SerializedProperty variableProp;
protected SerializedProperty compareOperatorProp;
@ -34,7 +34,7 @@ namespace Fungus.EditorUtils
{
serializedObject.Update();
If t = target as If;
VariableCondition t = target as VariableCondition;
var flowchart = (Flowchart)t.GetFlowchart();
if (flowchart == null)

0
Assets/Fungus/Scripts/Editor/IfEditor.cs.meta → Assets/Fungus/Scripts/Editor/VariableConditionEditor.cs.meta

Loading…
Cancel
Save