Fix false-positive of Surface node value modification
This commit is contained in:
@@ -762,7 +762,6 @@ namespace FlaxEditor.Surface
|
||||
ob.DrawConnections(ref mousePosition);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -892,7 +891,9 @@ namespace FlaxEditor.Surface
|
||||
/// <param name="graphEdited">True if graph has been edited (nodes structure or parameter value).</param>
|
||||
public virtual void SetValue(int index, object value, bool graphEdited = true)
|
||||
{
|
||||
if (_isDuringValuesEditing || !Surface.CanEdit || value == Values[index])
|
||||
if (_isDuringValuesEditing || !Surface.CanEdit)
|
||||
return;
|
||||
if (Equals(value, Values[index]))
|
||||
return;
|
||||
if (value is byte[] && Values[index] is byte[] && Utils.ArraysEqual((byte[])value, (byte[])Values[index]))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user