diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-05 12:02:41 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-05 12:02:41 +0100 |
commit | dc5b57ea44544d6721dc5fba490fb477e07feeb2 (patch) | |
tree | 9f26765e575f2383e614634efc882bceae1dfc01 /scene/resources/curve.cpp | |
parent | d1b7c60afcfa6d827d6a98a14476ee05a4d952ff (diff) | |
parent | 93cccda82797d56956e5756841298671c4ecdb68 (diff) | |
download | redot-engine-dc5b57ea44544d6721dc5fba490fb477e07feeb2.tar.gz |
Merge pull request #81325 from AttackButton/path_2d_editor_plugin-clear_points
Add a button to clear curve points in the Path2D 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 b6a40a03a1..2b54acef75 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -1046,6 +1046,10 @@ real_t Curve2D::get_bake_interval() const { return bake_interval; } +PackedVector2Array Curve2D::get_points() const { + return _get_data()["points"]; +} + Vector2 Curve2D::get_closest_point(const Vector2 &p_to_point) const { // Brute force method. |