Interpolation factor is now only checked in debug

Former-commit-id: b5cf2b63740a0827403cac7843aca4b820b7687f
This commit is contained in:
Lynix 2012-10-29 09:59:55 +01:00
parent a608aa0e2a
commit 8132812c23
1 changed files with 2 additions and 0 deletions

View File

@ -46,7 +46,9 @@ void NzSubMesh::Animate(unsigned int frameA, unsigned int frameB, float interpol
NazaraError("Frame B is out of range (" + NzString::Number(frameB) + " >= " + NzString::Number(frameCount) + ')');
return;
}
#endif
#ifdef NAZARA_DEBUG
if (interpolation < 0.f || interpolation > 1.f)
{
NazaraError("Interpolation must be in range [0..1] (Got " + NzString::Number(interpolation) + ')');