You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
@@ -156,7 +156,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
|
||||
// Extract FileDialog's filters property with values in format "*.png ; PNG Images","*.gd ; GDScript Files".
|
||||
Vector<String> str_values = property_value;
|
||||
for (int k = 0; k < str_values.size(); k++) {
|
||||
String desc = str_values[k].get_slice(";", 1).strip_edges();
|
||||
String desc = str_values[k].get_slicec(';', 1).strip_edges();
|
||||
if (!desc.is_empty()) {
|
||||
r_translations->push_back({ desc });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user