libanim
changeset 41:408017f78f88
really stupid mistake in hierarchical transformations... ignored the
parent matrix and instead multiplied an uninitialized one...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 27 Feb 2013 20:54:19 +0200 |
parents | 28c9d38e80de |
children | d48408ab376f |
files | src/anim.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/src/anim.c Wed Feb 27 06:20:26 2013 +0200 1.2 +++ b/src/anim.c Wed Feb 27 20:54:19 2013 +0200 1.3 @@ -360,7 +360,7 @@ 1.4 if(node->parent) { 1.5 mat4_t parent_mat; 1.6 1.7 - anm_get_matrix(node->parent, mat, tm); 1.8 + anm_get_matrix(node->parent, parent_mat, tm); 1.9 m4_mult(cache->matrix, parent_mat, cache->matrix); 1.10 } 1.11 cache->time = tm;