Skip to content

Commit 25cf9c0

Browse files
committed
Merge branch 'master' of github.com:Ultimaker/CuraEngine
2 parents de7620c + 74486d2 commit 25cf9c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

infill.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ void generateLineInfill(const Polygons& in_outline, Polygons& result, int extrus
3636

3737
boundary.min.X = ((boundary.min.X / lineSpacing) - 1) * lineSpacing;
3838
int lineCount = (boundary.max.X - boundary.min.X + (lineSpacing - 1)) / lineSpacing;
39-
vector<int64_t> cutList[lineCount];
39+
vector<vector<int64_t> > cutList;
40+
for(int n=0; n<lineCount; n++)
41+
cutList.push_back(vector<int64_t>());
42+
4043
for(unsigned int polyNr=0; polyNr < outline.size(); polyNr++)
4144
{
4245
Point p1 = outline[polyNr][outline[polyNr].size()-1];

0 commit comments

Comments
 (0)