mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 12:41:06 +01:00 
			
		
		
		
	DragScalarN, SliderScalarN, InputScalarN: Removed unnecessary string id after the integer PushID() calls.
This commit is contained in:
		| @@ -1930,7 +1930,7 @@ bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* v, int | ||||
|     for (int i = 0; i < components; i++) | ||||
|     { | ||||
|         PushID(i); | ||||
|         value_changed |= DragScalar("##v", data_type, v, v_speed, v_min, v_max, format, power); | ||||
|         value_changed |= DragScalar("", data_type, v, v_speed, v_min, v_max, format, power); | ||||
|         SameLine(0, g.Style.ItemInnerSpacing.x); | ||||
|         PopID(); | ||||
|         PopItemWidth(); | ||||
| @@ -2367,7 +2367,7 @@ bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, i | ||||
|     for (int i = 0; i < components; i++) | ||||
|     { | ||||
|         PushID(i); | ||||
|         value_changed |= SliderScalar("##v", data_type, v, v_min, v_max, format, power); | ||||
|         value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, power); | ||||
|         SameLine(0, g.Style.ItemInnerSpacing.x); | ||||
|         PopID(); | ||||
|         PopItemWidth(); | ||||
| @@ -2700,7 +2700,7 @@ bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* v, in | ||||
|     for (int i = 0; i < components; i++) | ||||
|     { | ||||
|         PushID(i); | ||||
|         value_changed |= InputScalar("##v", data_type, v, step, step_fast, format, flags); | ||||
|         value_changed |= InputScalar("", data_type, v, step, step_fast, format, flags); | ||||
|         SameLine(0, g.Style.ItemInnerSpacing.x); | ||||
|         PopID(); | ||||
|         PopItemWidth(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user