File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,13 @@ Animator::Animator() : ::Anim::Control(static_cast<Planner&>(*this))
2121void Animator::init (Diag::DiagramPtr diagram)
2222{
2323 if (target)
24- {
2524 source = targetCopy ? targetCopy : target;
26- actual. reset ();
27- target .reset ();
28- targetCopy .reset ();
29- virtualSource .reset ();
30- virtualTarget .reset ();
31- }
25+
26+ actual .reset ();
27+ target .reset ();
28+ targetCopy .reset ();
29+ virtualSource .reset ();
30+ virtualTarget. reset ();
3231
3332 if (diagram)
3433 {
@@ -80,7 +79,7 @@ void Animator::finish(bool ok)
8079 if (!ok) cancel ();
8180 auto f = completionCallback;
8281 completionCallback = OnComplete ();
83- if (f) f (target, ok);
82+ if (f) f (targetCopy ? targetCopy : target, ok);
8483}
8584
8685bool Animator::prepareVirtualCharts ()
@@ -166,8 +165,6 @@ void Animator::prepareActual()
166165 {
167166 copyTarget ();
168167
169- IO::log () << (bool )virtualSource << " " << (bool )virtualTarget;
170-
171168 if (!virtualSource && !virtualTarget)
172169 {
173170 target->prependMarkers (*source, false );
You can’t perform that action at this time.
0 commit comments