Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method in Curve to predict insertion index #75030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rindbee
Copy link
Contributor

@Rindbee Rindbee commented Mar 17, 2023

Previously, the way to get the index of the point being added was by calling add_point() to get its return value. Now it's computed, which may help implement improvements to the Curver editor (like in #74959).

@Rindbee Rindbee force-pushed the predict-insertion-index branch 3 times, most recently from 0e30a69 to 0d12779 Compare March 17, 2023 17:24
@kleonc kleonc added this to the 4.x milestone Mar 17, 2023
Find the one with the largest index if there are multiple points with equal x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants