summaryrefslogtreecommitdiff
path: root/scene/resources/curve.h
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <fire@users.noreply.github.com>2021-08-22 07:55:21 -0700
committerGitHub <noreply@github.com>2021-08-22 07:55:21 -0700
commitf303c2dfb527c84421e0226cc24ab9babf9cac8a (patch)
tree5f55e78723f1a3eb9ac6e2815c4d2a3d9e9cf8e7 /scene/resources/curve.h
parent51ec46e10f3adfbf4ee78661e37ff3d96ae97f9a (diff)
parent8a6fc54ccdba233b2951b8933798c03915739afd (diff)
Merge pull request #51945 from yjh0502/fix-bazier-error
Curve2D/Curve3D: exact linear interpolation
Diffstat (limited to 'scene/resources/curve.h')
-rw-r--r--scene/resources/curve.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/curve.h b/scene/resources/curve.h
index c25d307608..5808fd6508 100644
--- a/scene/resources/curve.h
+++ b/scene/resources/curve.h
@@ -161,6 +161,7 @@ class Curve2D : public Resource {
mutable bool baked_cache_dirty = false;
mutable PackedVector2Array baked_point_cache;
+ mutable PackedFloat32Array baked_dist_cache;
mutable float baked_max_ofs = 0.0;
void _bake() const;
@@ -224,6 +225,7 @@ class Curve3D : public Resource {
mutable PackedVector3Array baked_point_cache;
mutable Vector<real_t> baked_tilt_cache;
mutable PackedVector3Array baked_up_vector_cache;
+ mutable PackedFloat32Array baked_dist_cache;
mutable float baked_max_ofs = 0.0;
void _bake() const;