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:
authorJoshua Leung <aligorith@gmail.com>2018-04-19 19:21:05 +0300
committerJoshua Leung <aligorith@gmail.com>2018-04-20 19:54:41 +0300
commitaf6a6627984372b850aac3f3135946ee5c6cb33e (patch)
treede4bd6ed538a6edceb365ec2fff19a73c547901f /source/blender/editors/interface/resources.c
parentc9fc11a314662dd0ed1b9fb9de4d057b2cf2f1b3 (diff)
Preview Range: Show preview range using a different color (based on ANIM_ACTIVE)
instead of using "black" curtains With most editors now showing the start/end range by default, we need a way of easily distinguishing when preview range is now enabled. By using a different color (the exact color used is something we can change/adjust later), there is a more distinct visual difference between them, making it easier to see what's happening.
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r--source/blender/editors/interface/resources.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index b40ab09036f..1a6665ffa19 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -2951,6 +2951,18 @@ void init_userdef_do_versions(void)
copy_v4_v4_char(btheme->ttopbar.back, tmp);
}
}
+
+ if (!USER_VERSION_ATLEAST(280, 9)) {
+ /* Timeline removal */
+ for (bTheme *btheme = U.themes.first; btheme; btheme = btheme->next) {
+ if (btheme->tipo.anim_active[3] == 0) {
+ rgba_char_args_set(btheme->tipo.anim_active, 204, 112, 26, 102);
+ }
+ if (btheme->tseq.anim_active[3] == 0) {
+ rgba_char_args_set(btheme->tseq.anim_active, 204, 112, 26, 102);
+ }
+ }
+ }
/**
* Include next version bump.