mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
Fix of custom supports 3MF loading
Multiple-part objects were not handled correctly
This commit is contained in:
@@ -1878,10 +1878,11 @@ namespace Slic3r {
|
|||||||
volume->calculate_convex_hull();
|
volume->calculate_convex_hull();
|
||||||
|
|
||||||
// recreate custom supports from previously loaded attribute
|
// recreate custom supports from previously loaded attribute
|
||||||
assert(geometry.custom_supports.size() == triangles_count);
|
|
||||||
for (unsigned i=0; i<triangles_count; ++i) {
|
for (unsigned i=0; i<triangles_count; ++i) {
|
||||||
if (! geometry.custom_supports[i].empty())
|
size_t index = src_start_id/3 + i;
|
||||||
volume->m_supported_facets.set_triangle_from_string(i, geometry.custom_supports[i]);
|
assert(index < geometry.custom_supports.size());
|
||||||
|
if (! geometry.custom_supports[index].empty())
|
||||||
|
volume->m_supported_facets.set_triangle_from_string(i, geometry.custom_supports[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// apply the remaining volume's metadata
|
// apply the remaining volume's metadata
|
||||||
|
|||||||
Reference in New Issue
Block a user