Fixed crash in void GLGizmoSlaSupports::update_mesh()
This commit is contained in:
parent
c2e46350f2
commit
71c2d34308
1 changed files with 3 additions and 2 deletions
|
@ -1596,7 +1596,8 @@ void GLGizmoSlaSupports::update_mesh()
|
|||
{
|
||||
Eigen::MatrixXf& V = m_V;
|
||||
Eigen::MatrixXi& F = m_F;
|
||||
const stl_file& stl = m_model_object->mesh().stl;
|
||||
TriangleMesh mesh(m_model_object->mesh());
|
||||
const stl_file& stl = mesh.stl;
|
||||
V.resize(3 * stl.stats.number_of_facets, 3);
|
||||
F.resize(stl.stats.number_of_facets, 3);
|
||||
for (unsigned int i=0; i<stl.stats.number_of_facets; ++i) {
|
||||
|
|
Loading…
Reference in a new issue