Open zmaile opened 5 years ago
@sfinexer any ideas on this?
I tried my hand at a fix and managed to get it working on my machine.
I've never really contributed to a project before, nor am I a dev, so i wouldn't suggest implementing this patch without checking it doesn't bork something. But I hope it at least helps give an idea of the culprit code.
The sketch plugin gives the following on any image and settings combination I have tried:
The line
does change with different settings/images, but always contains a +-3, which seems to cause the index out of range error.
The error occurs in the fadePixel function, however looking through bCNC/plugins/sketch.py, it seems that the findInRange function is the culprit, with xmin, xmax, ymin, ymax values being min/max of 2, not 3. findInRange is called before fadePixel, and sets the X/Y coordinates that causes the index error.
I haven't tested this fix, so i'm not sure if there are any other repercussions to changing the values from 2 to 3.