Ver Fonte

Merge pull request #8429 from RandomShaper/fix-sample-lib-editor-2.1

Fix inability to remove samples from libraries (2.1)
Rémi Verschelde há 8 anos atrás
pai
commit
5ea3c0350a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      editor/plugins/sample_library_editor_plugin.cpp

+ 1 - 1
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();