mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
parent
476daf9aac
commit
39c978f499
@ -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);
|
DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max);
|
||||||
|
|
||||||
// Only mark as edited if new value is different
|
// 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)
|
if (value_changed)
|
||||||
MarkItemEdited(id);
|
MarkItemEdited(id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user