Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #174 from Innoactive/develop
Browse files Browse the repository at this point in the history
ci: release v2.4.1
  • Loading branch information
SimonTheSourcerer authored Sep 21, 2020
2 parents 9fa93b6 + c188acd commit 3b106b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/UI/Drawers/FloatDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override Rect Draw(Rect rect, object currentValue, Action<object> changeV
rect.height = EditorDrawingHelper.SingleLineHeight;

float value = (float)currentValue;
float newValue = EditorGUI.DelayedFloatField(rect, label, value);
float newValue = EditorGUI.FloatField(rect, label, value);

// Rounding error can't take place here.
// ReSharper disable once CompareOfFloatsByEqualityOperator
Expand Down
2 changes: 2 additions & 0 deletions Editor/UI/Drawers/TabsGroupDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ private Rect DrawToolbox(Rect rect, ITabsGroup tabsGroup, Action<object> changeV
tabsGroup.Tabs[oldSelected].OnUnselect();
tabsGroup.Tabs[selected].OnSelected();
tabsGroup.Selected = selected;
GUIUtility.keyboardControl = 0;
return tabsGroup;
},
() =>
{
tabsGroup.Tabs[selected].OnUnselect();
tabsGroup.Tabs[oldSelected].OnSelected();
tabsGroup.Selected = oldSelected;
GUIUtility.keyboardControl = 0;
return tabsGroup;
},
changeValueCallback);
Expand Down

0 comments on commit 3b106b7

Please sign in to comment.