mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-19 01:18:34 +02:00
Fix icon extraction.
This commit is contained in:
parent
04f1376641
commit
bae788fd1c
3 changed files with 9 additions and 9 deletions
4
test.py
4
test.py
|
@ -51,8 +51,8 @@ def test_icons():
|
|||
for icons_to_draw in to_draw:
|
||||
icon_set = {'icons': []}
|
||||
for icon in icons_to_draw:
|
||||
path, xx, yy = extracter.get_path(icon)
|
||||
assert xx
|
||||
path, xx, yy, is_shape = extracter.get_path(icon)
|
||||
assert is_shape, icon
|
||||
icon_set['icons'].append({'path': path,
|
||||
'x': (- 8.0 - xx * 16),
|
||||
'y': (- 8.0 - yy * 16)})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue