From 646c71c2773b859b2e5f62d400dfe439164fe933 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 19 Dec 2023 04:17:20 -0600 Subject: [PATCH] Add PackedRealArray as an alias for PackedFloat(32/64)Array --- include/godot_cpp/variant/variant.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index fc41014..4b58642 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/include/godot_cpp/variant/variant.hpp @@ -356,6 +356,12 @@ String vformat(const String &p_text, const VarArgs... p_args) { #include +#ifdef REAL_T_IS_DOUBLE +using PackedRealArray = PackedFloat64Array; +#else +using PackedRealArray = PackedFloat32Array; +#endif // REAL_T_IS_DOUBLE + } // namespace godot #endif // GODOT_VARIANT_HPP