1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Change sort_custom/bsearch_custom to use Callables

This commit is contained in:
kobewi
2021-02-04 02:02:06 +01:00
parent 5f8f049ddb
commit fb83d905da
5 changed files with 21 additions and 28 deletions

View File

@@ -2173,7 +2173,7 @@ Array TileSetEditor::_get_tiles_in_current_texture(bool sorted) {
}
}
if (sorted) {
a.sort_custom(this, "_sort_tiles");
a.sort_custom(callable_mp(this, &TileSetEditor::_sort_tiles));
}
return a;
}