diff options
author | matricola787 <62719360+matricola787@users.noreply.github.com> | 2023-12-14 19:19:55 +0100 |
---|---|---|
committer | GreenCrowDev <pcalifano@outlook.it> | 2024-11-16 12:59:08 +0100 |
commit | 790efbb7830a4beef7f6b37c60fad605cc5330d1 (patch) | |
tree | 519a202b13e2b055b46ab2f97b2741682ebfca23 /scene/resources/curve.h | |
parent | ef8d981267702de38ffc24136f9d823d31781c60 (diff) | |
download | redot-engine-790efbb7830a4beef7f6b37c60fad605cc5330d1.tar.gz |
Implement closed path for Curve3d
Diffstat (limited to 'scene/resources/curve.h')
-rw-r--r-- | scene/resources/curve.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/curve.h b/scene/resources/curve.h index 6da337a93f..154d91e23b 100644 --- a/scene/resources/curve.h +++ b/scene/resources/curve.h @@ -264,6 +264,8 @@ class Curve3D : public Resource { mutable Vector<size_t> points_in_cache; #endif + bool closed = false; + mutable bool baked_cache_dirty = false; mutable PackedVector3Array baked_point_cache; mutable Vector<real_t> baked_tilt_cache; @@ -330,6 +332,8 @@ public: Vector3 sample(int p_index, real_t p_offset) const; Vector3 samplef(real_t p_findex) const; + void set_closed(bool p_closed); + bool is_closed() const; void set_bake_interval(real_t p_tolerance); real_t get_bake_interval() const; void set_up_vector_enabled(bool p_enable); |