You've already forked godot
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:
@@ -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", ""));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user