1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Fix CreateDialog returning wrong type

This commit is contained in:
kobewi
2025-12-03 15:28:24 +01:00
parent 2ecefada8d
commit 234a255249
3 changed files with 3 additions and 3 deletions

View File

@@ -621,7 +621,7 @@ String CreateDialog::get_selected_type() {
return String();
}
String type = selected->get_text(0);
String type = selected->get_text(0).get_slicec(' ', 0);
return ClassDB::class_exists(type) ? type : String(selected->get_meta("_script_path", ""));
}