Added back in raster optimising, it's not perfect but it's mostly there. Only a little slow parsing white vertical space now.
Found that raster optimisation code seems to be changing the pixel data at the end of the line somewhere. I'm not sure how since it's meant to just be cutting part of the data line out not changing it. will need to investigate further.
Added option to the menu for users to disable raster optimisations.
Changelog 2015-04-20
Trying to fix a bug with exporting rasters on Mac
"""
###
...
...
@@ -698,7 +695,7 @@ class Gcode_tools(inkex.Effect):
#The below allows iteration over blank lines, while still being 'mostly' optimised for path. could still do with a little improvement for optimising horizontal movement and extrenuous for loops.
sub_index=index+1
if(sub_index<len(row)):
whileis_blank_line(row[sub_index]):
whileis_blank_line(row[sub_index-1]):
if(sub_index<len(row)):
sub_index+=1
else:
...
...
@@ -1002,7 +999,8 @@ class Gcode_tools(inkex.Effect):
#Get the XY position of all elements in the inkscape job.