diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-29 10:28:53 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-29 10:28:53 +0200 |
commit | 990943782a80e47b4a46587c298a338e9a2c119c (patch) | |
tree | d4396e8bf6c3fa0093d9bf297d6be85a73f05553 /scene/resources/curve.cpp | |
parent | 9f05e16727a6776c0bf27c18d5ce0d016542494a (diff) | |
parent | a3c4a4b039e9c0c5947744bbaf7f9a9bc123982c (diff) | |
download | redot-engine-990943782a80e47b4a46587c298a338e9a2c119c.tar.gz |
Merge pull request #74959 from MewPurPur/nice-curves
Overhaul the Curve Editor
Diffstat (limited to 'scene/resources/curve.cpp')
-rw-r--r-- | scene/resources/curve.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index 64e466cf75..5aaa41d518 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -114,6 +114,13 @@ int Curve::add_point(Vector2 p_position, real_t p_left_tangent, real_t p_right_t return ret; } +// TODO: Needed to make the curve editor function properly until https://github.com/godotengine/godot/issues/76985 is fixed. +int Curve::add_point_no_update(Vector2 p_position, real_t p_left_tangent, real_t p_right_tangent, TangentMode p_left_mode, TangentMode p_right_mode) { + int ret = _add_point(p_position, p_left_tangent, p_right_tangent, p_left_mode, p_right_mode); + + return ret; +} + int Curve::get_index(real_t p_offset) const { // Lower-bound float binary search |