Apply flame motion elements when generating flame sequence for animation

This commit is contained in:
Simon Detheridge
2015-07-02 18:01:37 +01:00
parent 679a8b4129
commit f606986b7d
2 changed files with 82 additions and 2 deletions

View File

@ -1010,11 +1010,13 @@ public:
if (!xform1->m_Motion.empty())
xform2->ApplyMotion(*xform1, blend);
xform2->DeleteMotionElements();
}
rotated.ApplyFlameMotion(blend);
rotated.RotateAffines(-blend * 360);//Rotate the affines.
rotated.DeleteMotionElements(); // delete all motion elements from the looped flame
}
/// <summary>