kopia lustrzana https://github.com/inkstitch/inkstitch
redwork: fix starting_point issue (#3082)
rodzic
287249578f
commit
2ad75356dd
|
@ -69,8 +69,13 @@ class Redwork(InkstitchExtension):
|
||||||
for line in multi_line_string.geoms:
|
for line in multi_line_string.geoms:
|
||||||
if line.distance(starting_point) < 2 and not start_applied:
|
if line.distance(starting_point) < 2 and not start_applied:
|
||||||
project = line.project(starting_point, True)
|
project = line.project(starting_point, True)
|
||||||
new_lines.append(substring(line, 0, project, True))
|
if project == 1:
|
||||||
new_lines = [substring(line, project, 1, True)] + new_lines
|
new_lines = [line.reverse()] + new_lines
|
||||||
|
elif project == 0:
|
||||||
|
new_lines = [line] + new_lines
|
||||||
|
else:
|
||||||
|
new_lines.append(substring(line, 0, project, True))
|
||||||
|
new_lines = [substring(line, project, 1, True)] + new_lines
|
||||||
start_applied = True
|
start_applied = True
|
||||||
else:
|
else:
|
||||||
new_lines.append(line)
|
new_lines.append(line)
|
||||||
|
|
Ładowanie…
Reference in New Issue