From 697ee123136e901824aed5ae8035c9c319daf9f0 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Sun, 19 Nov 2023 16:13:54 +0300 Subject: [PATCH] Motion: allow creating sequenceless motions with raw pointers --- src/choreograph/Motion.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/choreograph/Motion.hpp b/src/choreograph/Motion.hpp index 97cb3fb..f43c7dc 100644 --- a/src/choreograph/Motion.hpp +++ b/src/choreograph/Motion.hpp @@ -56,6 +56,11 @@ class Motion : public TimelineItem Motion() = delete; + Motion( T *target ): + _source( *target ), + _target( target ) + {} + Motion( T *target, const SequenceT &sequence ): _target( target ), _source( sequence )