提交 50fff162 编写于 作者: R Rémi Arnaud

Merge pull request #410 from fl4re/Fix/Step

Fix/step
......@@ -448,6 +448,15 @@ namespace COLLADAMaya
std::vector<float>::iterator itFound;
itFound = find(times.begin(), times.end(), stepTime);
if (ExportOptions::bakeTransforms() && interpolationType == COLLADASW::LibraryAnimations::STEP)
{
if (itFound != times.begin())
stepTime = *(itFound - 1);
else
continue;
}
{
std::vector<float>::iterator itLower = lower_bound(times.begin(), times.end(), stepTime);
int element = (int)(itLower - times.begin());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册