Fix CSG shape generation with meshes without indices, fixes #23364

This commit is contained in:
Juan Linietsky 2018-11-01 15:19:01 -03:00
parent 34426be9a0
commit b9dd095275

View file

@ -598,8 +598,8 @@ CSGBrush *CSGMesh::_build_brush() {
mw[j / 3] = mat; mw[j / 3] = mat;
} }
} else { } else {
int is = vertices.size(); int as = vertices.size();
int as = avertices.size(); int is = avertices.size();
vertices.resize(as + is); vertices.resize(as + is);
smooth.resize((as + is) / 3); smooth.resize((as + is) / 3);