Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

ImportDock: Update `freq` when searching for most common value

NoNormalDev367be1c63013
diff --git a/editor/docks/import_dock.cpp b/editor/docks/import_dock.cpp
index e5f58868361..57111cfedf9 100644
--- a/editor/docks/import_dock.cpp
+++ b/editor/docks/import_dock.cpp
@@ -316,6 +316,7 @@ void ImportDock::set_edit_multiple_paths(const Vector<String> &p_paths) {
for (const KeyValue<Variant, Variant> &kv : d) {
int f = kv.value;
if (f > freq) {
+ freq = f;
value = kv.key;
}
}