Fix of custom supports 3MF loading
Multiple-part objects were not handled correctly
This commit is contained in:
parent
171acf094c
commit
41b1dc3d80
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue