diff options
| author | Andy Maloney <asmaloney@gmail.com> | 2023-01-17 18:38:24 -0500 |
|---|---|---|
| committer | Andy Maloney <asmaloney@gmail.com> | 2023-01-17 18:38:24 -0500 |
| commit | dbd43ac107ba5fc931aacf94294f247ba2c724af (patch) | |
| tree | 45c7583d4667e2638b3fae4b04083531863f2add /src | |
| parent | cb15429e4a2cf0682acd626e7ecf703c2a159460 (diff) | |
| download | redot-cpp-dbd43ac107ba5fc931aacf94294f247ba2c724af.tar.gz | |
Fix a shadowed enum (EulerOrder)
Use the global constants.
Diffstat (limited to 'src')
| -rw-r--r-- | src/variant/quaternion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/variant/quaternion.cpp b/src/variant/quaternion.cpp index 0376dd8..9d4d838 100644 --- a/src/variant/quaternion.cpp +++ b/src/variant/quaternion.cpp @@ -46,7 +46,7 @@ real_t Quaternion::angle_to(const Quaternion &p_to) const { // This implementation uses XYZ convention (Z is the first rotation). Vector3 Quaternion::get_euler_xyz() const { Basis m(*this); - return m.get_euler(Basis::EULER_ORDER_XYZ); + return m.get_euler(EULER_ORDER_XYZ); } // get_euler_yxz returns a vector containing the Euler angles in the format @@ -58,7 +58,7 @@ Vector3 Quaternion::get_euler_yxz() const { ERR_FAIL_COND_V_MSG(!is_normalized(), Vector3(0, 0, 0), "The quaternion must be normalized."); #endif Basis m(*this); - return m.get_euler(Basis::EULER_ORDER_YXZ); + return m.get_euler(EULER_ORDER_YXZ); } void Quaternion::operator*=(const Quaternion &p_q) { |
