Fix icon extraction.

This commit is contained in:
Sergey Vartanov 2020-08-27 09:48:20 +03:00
parent 04f1376641
commit bae788fd1c
3 changed files with 9 additions and 9 deletions

View file

@ -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)})