mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
hide jumps from line view + fix solid display
This commit is contained in:
parent
3ed5a466a3
commit
1e5a2ddab9
@ -107,7 +107,7 @@ class Layer():
|
|||||||
def build(self, offset, vertices, colors, indices):
|
def build(self, offset, vertices, colors, indices):
|
||||||
result = offset
|
result = offset
|
||||||
for polygon in self._polygons:
|
for polygon in self._polygons:
|
||||||
if polygon._type == Polygon.InfillType:
|
if polygon.type == Polygon.InfillType or polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
polygon.build(result, vertices, colors, indices)
|
polygon.build(result, vertices, colors, indices)
|
||||||
@ -126,9 +126,9 @@ class Layer():
|
|||||||
builder = MeshBuilder()
|
builder = MeshBuilder()
|
||||||
|
|
||||||
for polygon in self._polygons:
|
for polygon in self._polygons:
|
||||||
if make_mesg and (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType):
|
if make_mesh and (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType):
|
||||||
continue
|
continue
|
||||||
if not make_mesg and not (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType):
|
if not make_mesh and not (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
poly_color = polygon.getColor()
|
poly_color = polygon.getColor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user