Fix panic in Transformation::scale
This commit is contained in:
parent
2026048053
commit
6216f197e9
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ impl Transformation {
|
||||||
|
|
||||||
/// Creates a scale transformation.
|
/// Creates a scale transformation.
|
||||||
pub fn scale(x: f32, y: f32) -> Transformation {
|
pub fn scale(x: f32, y: f32) -> Transformation {
|
||||||
Transformation(Mat4::from_scale(Vec3::new(x, y, 0.0)))
|
Transformation(Mat4::from_scale(Vec3::new(x, y, 1.0)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue