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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-22 10:00:38 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-05-22 11:03:35 +0400
commit77153b303264a6ab53f8a787d95ae45594b21d24 (patch)
tree17401e318ace1f4aa7fe4b0955e39ecd986d67cf /source/blender/blenloader/intern
parentd27d982657b6f544a451b5192f912d36a64eb06b (diff)
Freestyle: Fix for versioning code not working properly with new texture options.
To get the versioning code properly work, the condition should have been: DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "MTex", "*mtex[18]") The present commit uses another new structure member instead, to avoid referring to the magic number 18 in the last string literal.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/versioning_270.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index 4ca0470d378..7e058ae80f7 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -280,7 +280,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
}
}
- if (!DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "MTex", "mtex")) {
+ if (!DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "float", "texstep")) {
FreestyleLineStyle *linestyle;
for (linestyle = main->linestyle.first; linestyle; linestyle = linestyle->id.next) {