summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/variant
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2023-01-17 18:38:24 -0500
committerAndy Maloney <asmaloney@gmail.com>2023-01-17 18:38:24 -0500
commitdbd43ac107ba5fc931aacf94294f247ba2c724af (patch)
tree45c7583d4667e2638b3fae4b04083531863f2add /include/godot_cpp/variant
parentcb15429e4a2cf0682acd626e7ecf703c2a159460 (diff)
downloadredot-cpp-dbd43ac107ba5fc931aacf94294f247ba2c724af.tar.gz
Fix a shadowed enum (EulerOrder)
Use the global constants.
Diffstat (limited to 'include/godot_cpp/variant')
-rw-r--r--include/godot_cpp/variant/basis.hpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/godot_cpp/variant/basis.hpp b/include/godot_cpp/variant/basis.hpp
index 8b2d8c0..a365b02 100644
--- a/include/godot_cpp/variant/basis.hpp
+++ b/include/godot_cpp/variant/basis.hpp
@@ -31,6 +31,7 @@
#ifndef GODOT_BASIS_HPP
#define GODOT_BASIS_HPP
+#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/variant/quaternion.hpp>
#include <godot_cpp/variant/vector3.hpp>
@@ -58,15 +59,6 @@ struct _NO_DISCARD_ Basis {
_FORCE_INLINE_ real_t determinant() const;
- enum EulerOrder {
- EULER_ORDER_XYZ,
- EULER_ORDER_XZY,
- EULER_ORDER_YXZ,
- EULER_ORDER_YZX,
- EULER_ORDER_ZXY,
- EULER_ORDER_ZYX
- };
-
void from_z(const Vector3 &p_z);
void rotate(const Vector3 &p_axis, real_t p_angle);