diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-11-19 11:38:29 -0500 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-11-19 11:39:37 -0500 |
commit | cfc378b251e4330c6b6be949d4c054f9bae48159 (patch) | |
tree | 148a5511d3c1d723b2f2f364c832c2ba6f267fcc /scene/resources/curve.h | |
parent | 9767837a7ec40697788765e581131cb2cf172567 (diff) | |
parent | fd4c29a189e53a1e085df5b9b9a05cac9351b3ef (diff) | |
download | redot-engine-cfc378b251e4330c6b6be949d4c054f9bae48159.tar.gz |
Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3ef
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 0e4c02a57c..f814e89ae5 100644 --- a/scene/resources/curve.h +++ b/scene/resources/curve.h @@ -266,6 +266,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; @@ -332,6 +334,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); |