mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
parent
b5bdb88062
commit
466590d0ec
58 changed files with 210 additions and 210 deletions
|
|
@ -239,7 +239,7 @@ void MeshLibraryEditor::_menu_cbk(int p_option) {
|
|||
case MENU_OPTION_REMOVE_ITEM: {
|
||||
String p = InspectorDock::get_inspector_singleton()->get_selected_path();
|
||||
if (p.begins_with("item") && p.get_slice_count("/") >= 2) {
|
||||
to_erase = p.get_slice("/", 1).to_int();
|
||||
to_erase = p.get_slicec('/', 1).to_int();
|
||||
cd_remove->set_text(vformat(TTR("Remove item %d?"), to_erase));
|
||||
cd_remove->popup_centered(Size2(300, 60));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue