Fixed import of multi-material AMF files, broken due to admesh eradication.

This commit is contained in:
Vojtech Bubnik
2021-10-01 13:34:22 +02:00
parent bac7d2b961
commit afbbb36fa4
2 changed files with 28 additions and 13 deletions

View File

@@ -1922,7 +1922,7 @@ namespace Slic3r {
{
int min_id = its.indices.front()[0];
int max_id = min_id;
for (const Vec3i& face : its.indices) {
for (const Vec3i face : its.indices) {
for (const int tri_id : face) {
if (tri_id < 0 || tri_id >= int(geometry.vertices.size())) {
add_error("Found invalid vertex id");