Skip to content

Commit

Permalink
Removed -zero check on Euler angles
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardodoria committed Dec 7, 2024
1 parent 1562c0f commit 2830e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/core/math/Quaternion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@ Vector3 Quaternion::getEulerAngles(const RotationOrder& order) const {
}

return Vector3(
Angle::radToDefault((x == -0.0f) ? 0.0f : x),
Angle::radToDefault((y == -0.0f) ? 0.0f : y),
Angle::radToDefault((z == -0.0f) ? 0.0f : z)
Angle::radToDefault(x),
Angle::radToDefault(y),
Angle::radToDefault(z)
);
}

Expand Down

0 comments on commit 2830e7a

Please sign in to comment.