mirror of https://github.com/aap/librw.git
little hanim fix
This commit is contained in:
parent
d38ebcd64f
commit
343694329f
|
@ -167,6 +167,7 @@ HAnimHierarchy::updateMatrices(void)
|
||||||
else
|
else
|
||||||
rootMat.setIdentity();
|
rootMat.setIdentity();
|
||||||
parentMat = &rootMat;
|
parentMat = &rootMat;
|
||||||
|
*sp++ = parentMat;
|
||||||
HAnimNodeInfo *node = this->nodeInfo;
|
HAnimNodeInfo *node = this->nodeInfo;
|
||||||
for(i = 0; i < this->numNodes; i++){
|
for(i = 0; i < this->numNodes; i++){
|
||||||
anim->applyCB(&animMat, anim->getInterpFrame(i));
|
anim->applyCB(&animMat, anim->getInterpFrame(i));
|
||||||
|
@ -177,6 +178,8 @@ HAnimHierarchy::updateMatrices(void)
|
||||||
parentMat = curMat;
|
parentMat = curMat;
|
||||||
if(node->flags & POP)
|
if(node->flags & POP)
|
||||||
parentMat = *--sp;
|
parentMat = *--sp;
|
||||||
|
assert(sp >= stack);
|
||||||
|
assert(sp <= &stack[64]);
|
||||||
|
|
||||||
node++;
|
node++;
|
||||||
curMat++;
|
curMat++;
|
||||||
|
|
Loading…
Reference in New Issue