diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-16 06:10:25 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-16 06:12:12 +0400 |
commit | 980c1a98e9c6504032fb816d4369c1854c1b8a9f (patch) | |
tree | a0134fd2772dfc2e4514324164c50dcbd7b23427 /source/blender/blenloader | |
parent | be980b9f7d6443e27e1263259430dc0b563d59d8 (diff) |
Freestyle: Fix for texture spacing reset to a non-default value on load of old .blend files.
Problem report by Light BWK through personal communications. Thanks!
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index ada32aadbe2..4ca0470d378 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -279,4 +279,13 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) sce->r.bake.im_format.compress = 15; } } + + if (!DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "MTex", "mtex")) { + FreestyleLineStyle *linestyle; + + for (linestyle = main->linestyle.first; linestyle; linestyle = linestyle->id.next) { + linestyle->flag |= LS_TEXTURE; + linestyle->texstep = 1.0; + } + } } |