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!
This commit is contained in:
Tamito Kajiyama 2014-05-16 11:10:25 +09:00
parent be980b9f7d
commit 980c1a98e9
Notes: blender-bot 2023-02-14 10:36:30 +01:00
Referenced by issue #40329, strange behaviour key framing opacity on scene strip
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}
}
}