libanim

diff src/anim.c @ 39:529036ffe7a5

backported the fixes from calacirya
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 Feb 2013 05:58:09 +0200
parents 69654793abc3
children 1ce7e250bae3
line diff
     1.1 --- a/src/anim.c	Sun Sep 23 08:23:15 2012 +0300
     1.2 +++ b/src/anim.c	Mon Feb 25 05:58:09 2013 +0200
     1.3 @@ -325,6 +325,7 @@
     1.4  		pthread_mutex_unlock(&node->cache_list_lock);
     1.5  
     1.6  		cache->time = ANM_TIME_INVAL;
     1.7 +		cache->inv_time = ANM_TIME_INVAL;
     1.8  		pthread_setspecific(node->cache_key, cache);
     1.9  	}
    1.10  
    1.11 @@ -348,7 +349,7 @@
    1.12  
    1.13  		m4_translate(tmat, pos.x, pos.y, pos.z);
    1.14  		quat_to_mat4(rmat, rot);
    1.15 -		m4_translate(smat, scale.x, scale.y, scale.z);
    1.16 +		m4_scale(smat, scale.x, scale.y, scale.z);
    1.17  
    1.18  		/* ok this would look nicer in C++ */
    1.19  		m4_mult(cache->matrix, pivmat, tmat);
    1.20 @@ -380,6 +381,7 @@
    1.21  		pthread_mutex_unlock(&node->cache_list_lock);
    1.22  
    1.23  		cache->inv_time = ANM_TIME_INVAL;
    1.24 +		cache->inv_time = ANM_TIME_INVAL;
    1.25  		pthread_setspecific(node->cache_key, cache);
    1.26  	}
    1.27