This commit is contained in:
lvlong 2015-01-07 11:09:09 +08:00
parent c320bd46dd
commit f9b0c9bc92
1 changed files with 4 additions and 0 deletions

View File

@ -1227,6 +1227,10 @@ bool Bundle3D::loadSkinDataBinary(SkinData* skindata)
return false;
}
// Fix bug: check if the bone number is 0.
if (boneNum == 0)
return false;
// bone names and bind pos
float bindpos[16];
for (unsigned int i = 0; i < boneNum; i++)