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

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

No files matched your search

+1 -1
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");