Skip to content

Commit

Permalink
Changed the Into<TransformValues> implementation to a From<Transform>…
Browse files Browse the repository at this point in the history
… implementation.
  • Loading branch information
vultix committed Jun 28, 2019
1 parent 556b838 commit bbe758c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions amethyst_core/src/transform/components/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,12 +685,12 @@ impl From<TransformValues> for Transform {
}
}

impl Into<TransformValues> for Transform {
fn into(self) -> TransformValues {
impl From<Transform> for TransformValues {
fn from(transform: Transform) -> TransformValues {
TransformValues {
translation: self.isometry.translation.vector.into(),
rotation: self.isometry.rotation.as_ref().coords.into(),
scale: self.scale.into(),
translation: transform.isometry.translation.vector.into(),
rotation: transform.isometry.rotation.as_ref().coords.into(),
scale: transform.scale.into()
}
}
}
Expand Down

0 comments on commit bbe758c

Please sign in to comment.