Added delete button in drawing toolbar.

This commit is contained in:
jpcaram
2015-01-01 15:41:50 -05:00
parent 977b5b1f91
commit f17f955355
6 changed files with 22 additions and 12 deletions

View File

@@ -2370,19 +2370,14 @@ class CNCjob(Geometry):
try:
while True:
path_count += 1
print "Current: ", "(%.3f, %.3f)" % current_pt
# TODO: There shoudn't be any None in geometry.flatten()
# if geo is None:
# storage.remove(geo)
# continue
#print "Current: ", "(%.3f, %.3f)" % current_pt
# Remove before modifying, otherwise
# deletion will fail.
storage.remove(geo)
if list(pt) == list(geo.coords[-1]):
print "Reversing"
#print "Reversing"
geo.coords = list(geo.coords)[::-1]
# G-code