moveColor = [0, 0, 1, 0.5]
retractColor = [1, 0, 0.5, 0.5]
supportColor = [0, 1, 1, 1]
- extrudeColor = [1, 0, 0, 1]
+ extrudeColor = [[1, 0, 0, 1], [0, 1, 1, 1], [1, 1, 0, 1], [1, 0, 1, 1]]
innerWallColor = [0, 1, 0, 1]
skirtColor = [0, 0.5, 0.5, 1]
prevPathWasRetract = False
elif path.pathType == 'SKIRT':
c = skirtColor
else:
- c = extrudeColor
+ c = extrudeColor[path.extruder]
if path.type == 'retract':
c = retractColor
if path.type == 'extrude' and not drawQuick:
pathType = 'CUSTOM';
currentLayer = []
currentPath = gcodePath('move', pathType, layerThickness, pos.copy())
+ currentPath.extruder = currentExtruder
currentPath.list[0].e = totalExtrusion
currentPath.list[0].extrudeAmountMultiply = extrudeAmountMultiply
currentLayer.append(currentPath)
layerThickness = abs(oldPos.z - pos.z)
if currentPath.type != moveType or currentPath.pathType != pathType:
currentPath = gcodePath(moveType, pathType, layerThickness, currentPath.list[-1])
+ currentPath.extruder = currentExtruder
currentLayer.append(currentPath)
newPos = pos.copy()
newPos.e = totalExtrusion