Fix [#31544]: iTaSC assertion when creating armature with no joint. This degenerated case can be obtained by having a single bone in the IK chain and locking all 3 axis. This case was causing an assert in the KDL library. The bug is fixed by simply not creating the IK scene in this case.

This commit is contained in:
2012-06-04 22:29:17 +00:00
parent 0d3b19e734
commit 8db6e682e9
8 changed files with 16 additions and 10 deletions

View File

@@ -53,12 +53,13 @@ int FixedObject::addEndEffector(const std::string& name)
return -1;
}
void FixedObject::finalize()
bool FixedObject::finalize()
{
if (m_finalized)
return;
return true;
initialize(0, m_nframe);
m_finalized = true;
return true;
}
const Frame& FixedObject::getPose(const unsigned int frameIndex)