mirror of https://github.com/vitalif/openscad
Changed unnecessary if to assert
git-svn-id: http://svn.clifford.at/openscad/trunk@510 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
898358ecbd
commit
ec1417704a
|
@ -474,10 +474,9 @@ sphere_next_r2:
|
|||
{
|
||||
dd.paths.append(DxfData::Path());
|
||||
for (int i=0; i<points.vec.size(); i++) {
|
||||
if (i < dd.points.size()) {
|
||||
DxfData::Point *p = &dd.points[i];
|
||||
dd.paths.last().points.append(p);
|
||||
}
|
||||
assert(i < dd.points.size()); // FIXME: Not needed, but this used to be an 'if'
|
||||
DxfData::Point *p = &dd.points[i];
|
||||
dd.paths.last().points.append(p);
|
||||
}
|
||||
if (dd.paths.last().points.size() > 0) {
|
||||
dd.paths.last().points.append(dd.paths.last().points.first());
|
||||
|
|
Loading…
Reference in New Issue