diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-10 07:41:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 07:41:46 +0200 |
commit | 536950f9f35f48633c6c2c57ae2473bb906221d2 (patch) | |
tree | 659cb6a83ab8f4d76ae3b11486987c51825a849e /scene/resources/curve.h | |
parent | f3ddc14d3829ed09d6eab81811bcfb1314626ddf (diff) | |
parent | 430ad75963a0e6837ef460e78fb99565714b4418 (diff) |
Merge pull request #21922 from aaronfranke/double
Some work on double-precision support
Diffstat (limited to 'scene/resources/curve.h')
-rw-r--r-- | scene/resources/curve.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/curve.h b/scene/resources/curve.h index 746c6fa597..c25d307608 100644 --- a/scene/resources/curve.h +++ b/scene/resources/curve.h @@ -222,7 +222,7 @@ class Curve3D : public Resource { mutable bool baked_cache_dirty = false; mutable PackedVector3Array baked_point_cache; - mutable PackedFloat32Array baked_tilt_cache; + mutable Vector<real_t> baked_tilt_cache; mutable PackedVector3Array baked_up_vector_cache; mutable float baked_max_ofs = 0.0; @@ -265,7 +265,7 @@ public: float interpolate_baked_tilt(float p_offset) const; Vector3 interpolate_baked_up_vector(float p_offset, bool p_apply_tilt = false) const; PackedVector3Array get_baked_points() const; //useful for going through - PackedFloat32Array get_baked_tilts() const; //useful for going through + Vector<real_t> get_baked_tilts() const; //useful for going through PackedVector3Array get_baked_up_vectors() const; Vector3 get_closest_point(const Vector3 &p_to_point) const; float get_closest_offset(const Vector3 &p_to_point) const; |