diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-03-27 12:40:30 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-03-27 12:40:30 +0800 |
commit | 34eff85014c224c551ad6e62464d3bb26944c3cb (patch) | |
tree | f674e48fae3450af8517f5b44cdd63b76dcf2c1c /scene/resources/curve.cpp | |
parent | 5d08c2631cadf29d80ca23c7d537e03c3e5edcc5 (diff) | |
download | redot-engine-34eff85014c224c551ad6e62464d3bb26944c3cb.tar.gz |
Support “clear points” function in Path3D editor
Diffstat (limited to 'scene/resources/curve.cpp')
-rw-r--r-- | scene/resources/curve.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index 2b54acef75..8926eb1d51 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -2029,6 +2029,10 @@ Vector3 Curve3D::get_closest_point(const Vector3 &p_to_point) const { return nearest; } +PackedVector3Array Curve3D::get_points() const { + return _get_data()["points"]; +} + real_t Curve3D::get_closest_offset(const Vector3 &p_to_point) const { // Brute force method. |