Skip to content

Commit

Permalink
Motion: allow creating sequenceless motions with raw pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
mardy committed Nov 19, 2023
1 parent 3463198 commit a0b5652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/choreograph/Motion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class Motion : public TimelineItem

Motion() = delete;

Motion( T *target ):
_target( target ),
_source( *target )
{}

Motion( T *target, const SequenceT &sequence ):
_target( target ),
_source( sequence )
Expand Down

0 comments on commit a0b5652

Please sign in to comment.