Browse Source

Fixed can't select a Public variable from another flowchart #522

master
Christopher 8 years ago
parent
commit
9afc26a321
  1. 4
      Assets/Fungus/Flowchart/Editor/VariableEditor.cs

4
Assets/Fungus/Flowchart/Editor/VariableEditor.cs

@ -62,8 +62,10 @@ namespace Fungus
// variable references to be set to null when inspected. When this condition
// occurs we just skip displaying the property for this frame.
if (selectedVariable != null &&
selectedVariable.gameObject != flowchart.gameObject)
selectedVariable.gameObject != flowchart.gameObject &&
selectedVariable.scope == VariableScope.Private)
{
property.objectReferenceValue = null;
return;
}

Loading…
Cancel
Save