mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 05:39:00 +08:00
Save last known Z position in multi color slicing.
This commit is contained in:
parent
8f39846349
commit
3d70d67145
@ -1,7 +1,7 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import __init__
|
import __init__
|
||||||
|
|
||||||
import wx, sys, os, math, threading, subprocess, time
|
import wx, sys, os, math, threading, subprocess, time, re
|
||||||
|
|
||||||
from util import profile
|
from util import profile
|
||||||
from util import sliceRun
|
from util import sliceRun
|
||||||
@ -202,6 +202,8 @@ class WorkerThread(threading.Thread):
|
|||||||
hasLine = True
|
hasLine = True
|
||||||
if line.startswith(';LAYER:'):
|
if line.startswith(';LAYER:'):
|
||||||
break
|
break
|
||||||
|
if 'Z' in line:
|
||||||
|
lastZ = float(re.search('Z([^\s]+)', line).group(1))
|
||||||
if not layerHasLine:
|
if not layerHasLine:
|
||||||
nextExtruder = files.index(f)
|
nextExtruder = files.index(f)
|
||||||
resultFile.write(';LAYER:%d\n' % (layerNr))
|
resultFile.write(';LAYER:%d\n' % (layerNr))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user