mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-30 22:32:07 +00:00
Fixed a crash when loading STL file (from 02c18dbc52)
+ Added info_icon next to the "Volume" value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user