diff options
| author | Lex Neva <github.com@lexneva.name> | 2023-02-18 22:24:58 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2023-02-20 15:27:56 -0500 |
| commit | d278f6a54a2a316e70271ad04bd206e49a93fa5f (patch) | |
| tree | 4c8058cbebec6fa21b49cfad97f4f186ff71ffd8 /lib/stitches/meander_fill.py | |
| parent | 315866de9ade249cab8db81d880d255f33f851f3 (diff) | |
add tiles json and internationalization
Diffstat (limited to 'lib/stitches/meander_fill.py')
| -rw-r--r-- | lib/stitches/meander_fill.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index 6278b0ad..964a7a41 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -33,11 +33,11 @@ def meander_fill(fill, shape, shape_index, starting_point, ending_point): return post_process(generate_meander_path(graph, start, end, rng), shape, fill) -def get_tile(tile_name): - all_tiles = {tile.name: tile for tile in tiles.all_tiles()} +def get_tile(tile_id): + all_tiles = {tile.id: tile for tile in tiles.all_tiles()} try: - return all_tiles.get(tile_name, all_tiles.popitem()[1]) + return all_tiles.get(tile_id, all_tiles.popitem()[1]) except KeyError: return None |
