Fix typo/bug introduced by 0679e056 (#3231, #3209, #1829, #946, #413)

This commit is contained in:
Mr. Metric 2020-05-15 01:51:51 -07:00 committed by GitHub
parent 476daf9aac
commit 39c978f499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2970,7 +2970,7 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG
DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max);
// Only mark as edited if new value is different
value_changed = memcmp(&data_type, p_data, data_type_size) != 0;
value_changed = memcmp(&data_backup, p_data, data_type_size) != 0;
if (value_changed)
MarkItemEdited(id);
}