Fix crash with snap and project to self.

Apparently the original `edit_btmesh` is being freed and the new one has to be referenced
This commit is contained in:
Germano
2018-05-24 15:35:20 -03:00
parent 357199375b
commit c72b576aab

View File

@@ -535,6 +535,10 @@ static bool raycastEditMesh(
return retval;
}
}
else {
/* COW hack: Update pointers */
treedata->em = em;
}
float imat[4][4];
float timat[3][3]; /* transpose inverse matrix for normals */