File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,14 @@ void Planner::createPlan(const Gen::Plot &source,
123123 addMorph (SectionId::coordSystem, std::max (step, posDuration));
124124
125125 const ::Anim::Easing *geomEasing{&inOut5};
126- if (srcOpt->geometry == Gen::ShapeType::circle)
126+ if (auto &&targetCircle =
127+ trgOpt->geometry == Gen::ShapeType::circle;
128+ srcOpt->geometry == Gen::ShapeType::circle
129+ || (!targetCircle
130+ && srcOpt->geometry == Gen::ShapeType::line))
127131 geomEasing = &in3;
128- else if (trgOpt->geometry == Gen::ShapeType::circle)
129- geomEasing = &out3;
130- else if (srcOpt->geometry == Gen::ShapeType::line)
131- geomEasing = &in3;
132- else if (trgOpt->geometry == Gen::ShapeType::line)
132+ else if (targetCircle
133+ || trgOpt->geometry == Gen::ShapeType::line)
133134 geomEasing = &out3;
134135
135136 addMorph (SectionId::geometry,
You can’t perform that action at this time.
0 commit comments