indices are already polygon lists

This commit is contained in:
Quaternions 2024-02-17 19:33:00 -08:00
parent f91de2d669
commit d4ab1a9f97

@ -105,7 +105,7 @@ where
})
}
physics_group.groups.push(polygon_group_id);
model::PolygonGroup::PolygonList(model::PolygonList::new(vec![indices]))
model::PolygonGroup::PolygonList(model::PolygonList::new(indices.chunks(3).map(|poly|poly.to_vec()).collect()))
}).collect();
(
model::Mesh{