Drawbot_image_to_gcode_v2
Drawbot_image_to_gcode_v2 copied to clipboard
Scrolling through Pen Sets
When scrolling through the different pen sets, when going back to the first, if you press one more time, the program ends with a "ArrayIndexOutOfBoundsException:-1
Guess the culprit is the "render_with_copic" routine
Regards,
Jsecondo, thanks for the bug report. This bug has been driving me crazy. This is likely a race condition thing. I think keyPressed() runs in a separate thread. Still in the works for now.
Fixed: https://github.com/Scott-Cooper/Drawbot_image_to_gcode_v2/commit/5c4421f91e5e0925c9ff7297ea5cfc920d4ae077
Tried last update. Still null pointer appears in the next function while scrolling back to the first copic set.
color get_original_color(String pen) { return original_color.get(pen); }