Skip to content

Commit

Permalink
Add PackedRealArray as an alias for PackedFloat(32/64)Array
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Dec 19, 2023
1 parent 48afa82 commit 646c71c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/godot_cpp/variant/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,12 @@ String vformat(const String &p_text, const VarArgs... p_args) {

#include <godot_cpp/variant/builtin_vararg_methods.hpp>

#ifdef REAL_T_IS_DOUBLE
using PackedRealArray = PackedFloat64Array;
#else
using PackedRealArray = PackedFloat32Array;
#endif // REAL_T_IS_DOUBLE

} // namespace godot

#endif // GODOT_VARIANT_HPP

0 comments on commit 646c71c

Please sign in to comment.