Implement missing parts of 09f59ddb.

This caused no crashes, but some extrusions resulted in a wrong mesh.
This commit is contained in:
EvilSpirit 2016-04-27 18:48:40 +06:00 committed by whitequark
parent ba4cb28251
commit f5d8b1dc6b

View File

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