Remove Transform::apply_non_uniform_scale (#6133)
This is a holdover from back when `Transform` was backed by a private `Mat4` two years ago. Not particularly useful anymore :) ## Migration Guide `Transform::apply_non_uniform_scale` has been removed. It can be replaced with the following snippet: ```rust transform.scale *= scale_factor; ``` Co-authored-by: devil-ira <justthecooldude@gmail.com>
This commit is contained in:
parent
9423cb6a8d
commit
eb0a9e1586
@ -355,13 +355,6 @@ impl Transform {
|
|||||||
point += self.translation;
|
point += self.translation;
|
||||||
point
|
point
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Changes the `scale` of this [`Transform`], multiplying the current `scale` by
|
|
||||||
/// `scale_factor`.
|
|
||||||
#[inline]
|
|
||||||
pub fn apply_non_uniform_scale(&mut self, scale_factor: Vec3) {
|
|
||||||
self.scale *= scale_factor;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Transform {
|
impl Default for Transform {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user