Browse Source

Updated ImGui.

Бранимир Караџић 5 years ago
parent
commit
45c548b594
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3rdparty/dear-imgui/imgui_widgets.cpp

+ 1 - 1
3rdparty/dear-imgui/imgui_widgets.cpp

@@ -2985,7 +2985,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);
     }
     }