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:
authorAntony Riakiotakis <kalast@gmail.com>2015-04-21 20:01:09 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-04-21 20:01:09 +0300
commite1ce83f7629750a5900e0c0e83c6aa2860160aec (patch)
treec0313fed0fb1e6747ba3f3e0ed850e51f7e6e445 /source/blender/editors/interface/resources.c
parent58c511fb0149339b8942bb2124c215fd70219b63 (diff)
Initialize and use the theme for metadata text
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r--source/blender/editors/interface/resources.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index b90c1c10093..76985331568 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -2609,6 +2609,15 @@ void init_userdef_do_versions(void)
cp[3] = 255;
}
}
+
+ if (U.versionfile < 274 || (U.versionfile == 274 && U.subversionfile < 5)) {
+ bTheme *btheme;
+ for (btheme = U.themes.first; btheme; btheme = btheme->next) {
+ copy_v4_v4_char(btheme->tima.metadatatext, btheme->tima.text_hi);
+ copy_v4_v4_char(btheme->tseq.metadatatext, btheme->tseq.text_hi);
+ }
+ }
+
if (U.pixelsize == 0.0f)
U.pixelsize = 1.0f;