From f5d8b1dc6ba60a53fb769db26c80fe4b493d2015 Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Wed, 27 Apr 2016 18:48:40 +0600 Subject: [PATCH] Implement missing parts of 09f59ddb. This caused no crashes, but some extrusions resulted in a wrong mesh. --- src/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index b3f4de8..e5312e8 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -249,7 +249,7 @@ void SMesh::AddAgainstBsp(SMesh *srcm, SBsp3 *bsp3) { STriangle *st = &(srcm->l.elem[i]); int pn = l.n; atLeastOneDiscarded = false; - SBsp3::InsertOrCreate(NULL, st, this); + SBsp3::InsertOrCreate(bsp3, st, this); if(!atLeastOneDiscarded && (l.n != (pn+1))) { l.n = pn; if(flipNormal) {