Skip to content

Motion: allow creating sequenceless motions with raw pointers#54

Open
mardy wants to merge 8 commits into
sansumbrella:stablefrom
mardy:sequenceless-raw-apply
Open

Motion: allow creating sequenceless motions with raw pointers#54
mardy wants to merge 8 commits into
sansumbrella:stablefrom
mardy:sequenceless-raw-apply

Conversation

@mardy
Copy link
Copy Markdown

@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
This fixes a couple of conversion issues:

    .../src/choreograph/Motion.hpp:182:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
      182 |         if( inflection > bottom && inflection <= top ) {
          |             ~~~~~~~~~~~^~~~~~~~
    .../src/choreograph/Motion.hpp:182:47: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
      182 |         if( inflection > bottom && inflection <= top ) {
          |                                    ~~~~~~~~~~~^~~~~~
@mardy mardy force-pushed the sequenceless-raw-apply branch from 697ee12 to abab155 Compare September 20, 2025 09:10
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