# HG changeset patch # User John Tsiombikas # Date 1415446883 -7200 # Node ID 7c9e1f431e7230985f6fd3e938096fe0742ffdaf # Parent dfdf128d144cd0f42b84ad6ecb2567a63f761105 invalidate_cache should also invalidate children's caches recursively diff -r dfdf128d144c -r 7c9e1f431e72 src/anim.c --- a/src/anim.c Fri Oct 03 17:16:51 2014 +0300 +++ b/src/anim.c Sat Nov 08 13:41:23 2014 +0200 @@ -957,8 +957,15 @@ static void invalidate_cache(struct anm_node *node) { + struct anm_node *c; struct mat_cache *cache = pthread_getspecific(node->cache_key); if(cache) { cache->time = cache->inv_time = ANM_TIME_INVAL; } + + c = node->child; + while(c) { + invalidate_cache(c); + c = c->next; + } }