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;
}
} else {
int is = vertices.size();
int as = avertices.size();
int as = vertices.size();
int is = avertices.size();
vertices.resize(as + is);
smooth.resize((as + is) / 3);