parent
44b41ded82
commit
189acbee60
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ void MeshLibraryEditor::_menu_cbk(int p_option) {
|
||||||
} break;
|
} break;
|
||||||
case MENU_OPTION_REMOVE_ITEM: {
|
case MENU_OPTION_REMOVE_ITEM: {
|
||||||
String p = InspectorDock::get_inspector_singleton()->get_selected_path();
|
String p = InspectorDock::get_inspector_singleton()->get_selected_path();
|
||||||
if (p.begins_with("/MeshLibrary/item") && p.get_slice_count("/") >= 3) {
|
if (p.begins_with("/MeshLibrary/item") && p.get_slice_count("/") >= 2) {
|
||||||
to_erase = p.get_slice("/", 3).to_int();
|
to_erase = p.get_slice("/", 3).to_int();
|
||||||
cd_remove->set_text(vformat(TTR("Remove item %d?"), to_erase));
|
cd_remove->set_text(vformat(TTR("Remove item %d?"), to_erase));
|
||||||
cd_remove->popup_centered(Size2(300, 60));
|
cd_remove->popup_centered(Size2(300, 60));
|
||||||
|
|
Loading…
Reference in a new issue