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

Motion: allow creating sequenceless motions with raw pointers #54

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

Conversation

mardy
Copy link

@mardy mardy commented Nov 19, 2023

Hi David, thanks for this nice project! I hope you are still maintaining it :-)

I had some trouble to create a timeline with raw pointers: the code

    m_timeline.applyRaw(&m_currentPositions[source]).
        then<ch::RampTo>(m_points[target], 0.3);

would not compile (m_currentPositions is a std::vector of a Point class of mine). Adding the Motion constructor proposed in this PR fixed the issue for me.

Maybe there was a specific reason why this constructor was not added?

@mardy mardy force-pushed the sequenceless-raw-apply branch from a0b5652 to 697ee12 Compare November 19, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant