Skip to content

Commit

Permalink
Merge pull request #1340 from aaronfranke/really-packed
Browse files Browse the repository at this point in the history
Add PackedRealArray as an alias for PackedFloat(32/64)Array
  • Loading branch information
dsnopek authored Dec 20, 2023
2 parents 48afa82 + 646c71c commit 1c19d62
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 1c19d62

Please sign in to comment.