removed usage of non-existing name
This commit is contained in:
parent
56b34cd083
commit
2c24e076ae
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ def generate_point_array_from_image(image):
|
||||||
cached_point_arrays = load_cached_point_arrays()
|
cached_point_arrays = load_cached_point_arrays()
|
||||||
|
|
||||||
if image_hash in cached_point_arrays:
|
if image_hash in cached_point_arrays:
|
||||||
print("Found existing point array matching png: " + image.filename + " using existing array.")
|
print("Found existing point array matching png. Using existing array.")
|
||||||
return [Point2D(point["x"], point["y"], tuple(point["color"])) for point in cached_point_arrays[image_hash]]
|
return [Point2D(point["x"], point["y"], tuple(point["color"])) for point in cached_point_arrays[image_hash]]
|
||||||
|
|
||||||
print("No existing point array matching png: " + image.filename + " found. Generating now.")
|
print("No existing point array matching png found. Generating now.")
|
||||||
width, height = image.size
|
width, height = image.size
|
||||||
pixel_array = []
|
pixel_array = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue