NSRenderableEntity: Ensure .skeletonindex is set to 0 after deleting the skeletal object
This commit is contained in:
parent
0e3eb491a6
commit
3e182b3737
|
@ -71,6 +71,7 @@ NSRenderableEntity::_UpdateBoneCount(void)
|
||||||
m_iNumBones = skel_get_numbones(skeletonindex) + 1;
|
m_iNumBones = skel_get_numbones(skeletonindex) + 1;
|
||||||
//print(sprintf("UPDATED GEOMSET FOR MODELINDEX %d, %d BONES\n", modelindex, m_iNumBones));
|
//print(sprintf("UPDATED GEOMSET FOR MODELINDEX %d, %d BONES\n", modelindex, m_iNumBones));
|
||||||
skel_delete(skeletonindex);
|
skel_delete(skeletonindex);
|
||||||
|
skeletonindex = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue