Skip to content

Commit

Permalink
Use *= operator instead of calling mul_assign method
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 3, 2024
1 parent 4490297 commit 65551dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collada/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl ops::MulAssign<Matrix4x4> for [f32; 4] {
impl ops::MulAssign<Matrix4x4> for [f32; 3] {
fn mul_assign(&mut self, m: Matrix4x4) {
let mut result = [self[0], self[1], self[2], 1.];
result.mul_assign(m);
result *= m;
*self = [result[0], result[1], result[2]];
}
}
Expand Down

0 comments on commit 65551dc

Please sign in to comment.