Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2012-07-05 06:58:02 +0400
committerSergej Reich <sergej.reich@googlemail.com>2012-07-05 06:58:02 +0400
commit2d5b9c4ae4a11f8b2671ca526f6ae3b2404a78b7 (patch)
treef80685bc268413412d84efa8ac81b9fa8e3d45aa /source/blender/editors/space_time
parent0ee0eec6c65abc8d1268c975e47dfe34f62e9eaf (diff)
Draw outdated point cache in a lighter color
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/space_time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c
index 01d27aaa0b3..a9315313d26 100644
--- a/source/blender/editors/space_time/space_time.c
+++ b/source/blender/editors/space_time/space_time.c
@@ -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;
}
+ 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);
@@ -699,4 +702,3 @@ void ED_spacetype_time(void)
BKE_spacetype_register(st);
}
-