diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 22:04:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 22:04:25 +0100 |
commit | 9f7744ee0e8ac6808bee2f29e44f09a85f6d5766 (patch) | |
tree | d16dcc19bc8adb3d3f41d9131e79312ba7cbad20 | |
parent | 5ba53d0b36482fbd01675c840a48e39d44401b32 (diff) | |
parent | 189acbee60f3d3149577db5446d9115352f60216 (diff) |
Merge pull request #46435 from Hassan-A/MeshLibrary-RemoveItem-Fix
Fix mesh library remove selected item menu option
-rw-r--r-- | editor/plugins/mesh_library_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/mesh_library_editor_plugin.cpp b/editor/plugins/mesh_library_editor_plugin.cpp index 2981862291..ec2421573f 100644 --- a/editor/plugins/mesh_library_editor_plugin.cpp +++ b/editor/plugins/mesh_library_editor_plugin.cpp @@ -232,7 +232,7 @@ void MeshLibraryEditor::_menu_cbk(int p_option) { } break; case MENU_OPTION_REMOVE_ITEM: { 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(); cd_remove->set_text(vformat(TTR("Remove item %d?"), to_erase)); cd_remove->popup_centered(Size2(300, 60)); |