Fix loading of MD5
Former-commit-id: 06120fb3631516af6dd6dc7a295a7393823d8874
This commit is contained in:
parent
0a99058c4d
commit
aa86db9a88
|
|
@ -37,6 +37,8 @@ namespace Nz
|
|||
Animation::~Animation()
|
||||
{
|
||||
OnAnimationRelease(this);
|
||||
|
||||
Destroy();
|
||||
}
|
||||
|
||||
bool Animation::AddSequence(const Sequence& sequence)
|
||||
|
|
|
|||
|
|
@ -285,6 +285,7 @@ namespace Nz
|
|||
if (!Advance())
|
||||
return false;
|
||||
|
||||
// Space is important for the buffer of \n
|
||||
if (std::sscanf(&m_currentLine[0], " ( %f %f %f ) ( %f %f %f )", &m_joints[i].bindPos.x, &m_joints[i].bindPos.y, &m_joints[i].bindPos.z,
|
||||
&m_joints[i].bindOrient.x, &m_joints[i].bindOrient.y, &m_joints[i].bindOrient.z) != 6)
|
||||
{
|
||||
|
|
@ -324,6 +325,7 @@ namespace Nz
|
|||
return false;
|
||||
|
||||
Vector3f min, max;
|
||||
// Space is important for the buffer of \n
|
||||
if (std::sscanf(&m_currentLine[0], " ( %f %f %f ) ( %f %f %f )", &min.x, &min.y, &min.z, &max.x, &max.y, &max.z) != 6)
|
||||
{
|
||||
UnrecognizedLine(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue