Browse Source

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

Juan Linietsky 6 years ago
parent
commit
b9dd095275
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/csg/csg_shape.cpp

+ 2 - 2
modules/csg/csg_shape.cpp

@@ -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);