From 980c1a98e9c6504032fb816d4369c1854c1b8a9f Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 16 May 2014 11:10:25 +0900 Subject: 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! --- source/blender/blenloader/intern/versioning_270.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/blenloader/intern') 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; + } + } } -- cgit v1.2.3