Browse Source

Merge branch 'master' into UnityReorderable

master
desktop-maesty/steve 6 years ago
parent
commit
d861342414
  1. 2
      Assets/Fungus/Scripts/Editor/BlockEditor.cs
  2. 6
      Assets/Fungus/Scripts/Editor/VariableEditor.cs

2
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -306,7 +306,7 @@ namespace Fungus.EditorUtils
} }
if (commandSelectedByTextInput != null && if (commandSelectedByTextInput != null &&
Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter) (Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter))
{ {
AddCommandCallback(commandSelectedByTextInput); AddCommandCallback(commandSelectedByTextInput);
commandSelectedByTextInput = null; commandSelectedByTextInput = null;

6
Assets/Fungus/Scripts/Editor/VariableEditor.cs

@ -211,13 +211,15 @@ namespace Fungus.EditorUtils
return; return;
} }
var origLabel = new GUIContent(label);
if (EditorGUI.GetPropertyHeight(valueProp, label) > EditorGUIUtility.singleLineHeight) if (EditorGUI.GetPropertyHeight(valueProp, label) > EditorGUIUtility.singleLineHeight)
{ {
DrawMultiLineProperty(position, label, referenceProp, valueProp, flowchart); DrawMultiLineProperty(position, origLabel, referenceProp, valueProp, flowchart);
} }
else else
{ {
DrawSingleLineProperty(position, label, referenceProp, valueProp, flowchart); DrawSingleLineProperty(position, origLabel, referenceProp, valueProp, flowchart);
} }
EditorGUI.EndProperty(); EditorGUI.EndProperty();

Loading…
Cancel
Save