Delete unnecessary change check

This commit is contained in:
VladV 2022-05-09 11:09:11 +03:00
parent 85603b0325
commit 0d0ec09bf4

View File

@ -118,20 +118,10 @@ namespace TriInspector.Elements
var labelWidthExtra = 6f + (_reorderableListGui.draggable ? 15f : 0f);
EditorGUI.BeginChangeCheck();
using (TriGuiHelper.PushLabelWidth(EditorGUIUtility.labelWidth - labelWidthExtra))
{
_reorderableListGui.DoList(position);
}
if (EditorGUI.EndChangeCheck())
{
if (_reorderableListGui.list != null)
{
_property.SetValue(_reorderableListGui.list);
}
}
}
private bool GenerateChildren()