[Bf-blender-cvs] [980c1a9] master: Freestyle: Fix for texture spacing reset to a non-default value on load of old .blend files.
Tamito Kajiyama
noreply at git.blender.org
Fri May 16 04:35:34 CEST 2014
Commit: 980c1a98e9c6504032fb816d4369c1854c1b8a9f
Author: Tamito Kajiyama
Date: Fri May 16 11:10:25 2014 +0900
https://developer.blender.org/rB980c1a98e9c6504032fb816d4369c1854c1b8a9f
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!
===================================================================
M source/blender/blenloader/intern/versioning_270.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index ada32aa..4ca0470 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;
+ }
+ }
}
More information about the Bf-blender-cvs
mailing list