Hi there,
currently our hseditor.HasChanges method does as follows:
newData := editor.GenerateSaveData()
if newData != nil {
oldData, err := e.Path.GetFileBytes()
if err == nil {
return !bytes.Equal(oldData, newData)
}
}
but most of our encoders aren't as precise. They are encoding data, but sometimes in a bit changed order e.t.c...
HasChanges should really check if edited (viewed) structure has changes.
Hi there,
currently our
hseditor.HasChangesmethod does as follows:but most of our encoders aren't as precise. They are encoding data, but sometimes in a bit changed order e.t.c...
HasChangesshould really check if edited (viewed) structure has changes.