aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/sample_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2017-04-17 00:28:29 +0200
committerPedro J. Estébanez2017-04-17 00:28:29 +0200
commit3922407cebf1f81d22d1956ab393575a4db9e484 (patch)
tree4f200aee55c7c7d9f430ba6425cfb8b4b7bc2dbb /editor/plugins/sample_library_editor_plugin.cpp
parent8df5b7151f9682e851b6c1c9ff1e13a32190b532 (diff)
downloadgodot-3922407cebf1f81d22d1956ab393575a4db9e484.tar.gz
godot-3922407cebf1f81d22d1956ab393575a4db9e484.tar.zst
godot-3922407cebf1f81d22d1956ab393575a4db9e484.zip
Fix inability to remove samples from libraries
Diffstat (limited to '')
-rw-r--r--editor/plugins/sample_library_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sample_library_editor_plugin.cpp b/editor/plugins/sample_library_editor_plugin.cpp
index a729b3609..d2cc43dd2 100644
--- a/editor/plugins/sample_library_editor_plugin.cpp
+++ b/editor/plugins/sample_library_editor_plugin.cpp
@@ -130,7 +130,7 @@ void SampleLibraryEditor::_button_pressed(Object *p_item, int p_column, int p_id
} else if (p_column == 1) { // Edit
get_tree()->get_root()->get_child(0)->call("_resource_selected", sample_library->get_sample(name));
- } else if (p_column == 5) { // Delete
+ } else if (p_column == 6) { // Delete
ti->select(0);
_delete_pressed();