Fix FBX color clippy warning

This commit is contained in:
Dylan M. Taylor committed 2026-11-15 18:54:08 +00:00
1 parent aa4d4c5f13
commit d4c2eb7b74
1 file changed
+4 -4
+4 -4
View File
@@ -1134,10 +1134,10 @@ impl<'a> Build<'a, '_> {
positions.push(original);
vertex_colors.push([1.0; 4]);
}
if let Some(dst) = vertex_colors.get_mut(position as usize) {
if let [r, g, b, a] = rgba {
*dst = [finite(*r) as f32, finite(*g) as f32, finite(*b) as f32, finite(*a) as f32];
}
if let Some(dst) = vertex_colors.get_mut(position as usize)
&& let [r, g, b, a] = rgba
{
*dst = [finite(*r) as f32, finite(*g) as f32, finite(*b) as f32, finite(*a) as f32];
}
color_indices.insert((p, color), position);
}