Push current work
This commit is contained in:
committed by
Jérôme Leclercq
parent
85cd064171
commit
e5e3026005
@@ -34,6 +34,12 @@ namespace Nz
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!skeleton)
|
||||
{
|
||||
NazaraError("You must set a valid skeleton to load an animation");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,8 @@ namespace Nz
|
||||
UpdateJointMap();
|
||||
|
||||
auto it = m_impl->jointMap.find(jointName);
|
||||
NazaraAssert(it != m_impl->jointMap.end(), "joint not found");
|
||||
if (it == m_impl->jointMap.end())
|
||||
return InvalidJointIndex;
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user