diff options
author | Juan Linietsky <juan@godotengine.org> | 2018-11-01 15:19:01 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2018-11-01 15:19:47 -0300 |
commit | b9dd095275c2dde27d1abc26efbcc010ebd1436b (patch) | |
tree | 75d8ebc51b4b8bd826c68e3c087c1fab39645557 /modules | |
parent | 34426be9a0ef904c5cb106ae6bbea6511ed79fda (diff) |
Fix CSG shape generation with meshes without indices, fixes #23364
Diffstat (limited to 'modules')
-rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 44044d2750..4eb798de11 100644 --- a/modules/csg/csg_shape.cpp +++ b/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); |