Draw outdated point cache in a lighter color
authorSergej Reich <sergej.reich@googlemail.com>
Thu, 5 Jul 2012 02:58:02 +0000 (02:58 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Thu, 5 Jul 2012 02:58:02 +0000 (02:58 +0000)
source/blender/editors/space_time/space_time.c

index 01d27aaa0b331efc045aeafbf6fabbb4c7a2cf50..a9315313d2601bcb11340013ba2e6e42f635e359 100644 (file)
@@ -208,6 +208,9 @@ static void time_draw_cache(SpaceTime *stime, Object *ob)
                if (pid->cache->flag & PTCACHE_BAKED) {
                        col[0] -= 0.4f; col[1] -= 0.4f; col[2] -= 0.4f;
                }
                if (pid->cache->flag & PTCACHE_BAKED) {
                        col[0] -= 0.4f; col[1] -= 0.4f; col[2] -= 0.4f;
                }
+               else if (pid->cache->flag & PTCACHE_OUTDATED) {
+                       col[0] += 0.4f; col[1] += 0.4f; col[2] += 0.4f;
+               }
                glColor4fv(col);
                
                glEnableClientState(GL_VERTEX_ARRAY);
                glColor4fv(col);
                
                glEnableClientState(GL_VERTEX_ARRAY);
@@ -699,4 +702,3 @@ void ED_spacetype_time(void)
                
        BKE_spacetype_register(st);
 }
                
        BKE_spacetype_register(st);
 }
-