use render config from face description

This commit is contained in:
Quaternions 2025-01-31 09:13:14 -08:00
parent 4acef656e5
commit 99bcf6d661

@ -116,7 +116,7 @@ pub fn convert(
}
(0..NORMAL_FACES).map(|polygon_group_id|{
model::IndexedGraphicsGroup{
render:RenderConfigId::new(0),
render:cube_face_description[polygon_group_id].as_ref().map_or(RenderConfigId::new(0),|face_description|face_description.render),
groups:vec![PolygonGroupId::new(polygon_group_id as u32)]
}
}).collect()