Fixed a crash when loading STL file (from 02c18dbc52
)
+ Added info_icon next to the "Volume" value
This commit is contained in:
parent
107f1baa32
commit
f535b592ac
2 changed files with 23 additions and 10 deletions
src/libslic3r
|
@ -1716,7 +1716,7 @@ TriangleMeshStats ModelObject::get_object_stl_stats() const
|
|||
|
||||
// another used satistics value
|
||||
if (volume->is_model_part()) {
|
||||
Transform3d trans = instances[0]->get_matrix() * volume->get_matrix();
|
||||
Transform3d trans = instances.empty() ? volume->get_matrix() : (volume->get_matrix() * instances[0]->get_matrix());
|
||||
full_stats.volume += stats.volume * std::fabs(trans.matrix().block(0, 0, 3, 3).determinant());
|
||||
full_stats.number_of_parts += stats.number_of_parts;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue