Added back in raster optimising, it's not perfect but it's mostly there. Only a little slow parsing white vertical space now.
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.
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.
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):
...
@@ -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.
#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
sub_index=index+1
if(sub_index<len(row)):
if(sub_index<len(row)):
whileis_blank_line(row[sub_index]):
whileis_blank_line(row[sub_index-1]):
if(sub_index<len(row)):
if(sub_index<len(row)):
sub_index+=1
sub_index+=1
else:
else:
...
@@ -1002,7 +999,8 @@ class Gcode_tools(inkex.Effect):
...
@@ -1002,7 +999,8 @@ class Gcode_tools(inkex.Effect):
#Get the XY position of all elements in the inkscape job.
#Get the XY position of all elements in the inkscape job.