diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2021-11-17 21:08:55 +0100 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-01-20 20:13:26 +0100 |
commit | aa1102fc536bd7b3a2cff703d79713c454af7e6c (patch) | |
tree | dbe06bedc829e44e5186ea36a70386e8209b2666 /editor/plugins/mesh_library_editor_plugin.cpp | |
parent | 8fc0dd9997c80059ec2b273e7004daa458d370ee (diff) | |
download | redot-engine-aa1102fc536bd7b3a2cff703d79713c454af7e6c.tar.gz |
Store panels and docks singletons in their own classes
Diffstat (limited to 'editor/plugins/mesh_library_editor_plugin.cpp')
-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 95786176ee..e47381b8a0 100644 --- a/editor/plugins/mesh_library_editor_plugin.cpp +++ b/editor/plugins/mesh_library_editor_plugin.cpp @@ -228,7 +228,7 @@ void MeshLibraryEditor::_menu_cbk(int p_option) { mesh_library->create_item(mesh_library->get_last_unused_item_id()); } break; case MENU_OPTION_REMOVE_ITEM: { - String p = editor->get_inspector()->get_selected_path(); + String p = InspectorDock::get_inspector_singleton()->get_selected_path(); if (p.begins_with("/MeshLibrary/item") && p.get_slice_count("/") >= 3) { to_erase = p.get_slice("/", 3).to_int(); cd_remove->set_text(vformat(TTR("Remove item %d?"), to_erase)); |