diff options
Diffstat (limited to 'source/blender/blenloader/intern/versioning_270.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 2dd227ef036..41b95064ac6 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -43,6 +43,7 @@ #include "DNA_mesh_types.h" #include "DNA_modifier_types.h" #include "DNA_sdna_types.h" +#include "DNA_linestyle_types.h" #include "DNA_genfile.h" @@ -171,4 +172,14 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) me->smoothresh = DEG2RADF(me->smoothresh); } } + + if (!MAIN_VERSION_ATLEAST(main, 270, 3)) { + FreestyleLineStyle *linestyle; + + for (linestyle = main->linestyle.first; linestyle; linestyle = linestyle->id.next) { + linestyle->flag |= LS_NO_SORTING; + linestyle->sort_key = LS_SORT_KEY_DISTANCE_FROM_CAMERA; + linestyle->integration_type = LS_INTEGRATION_MEAN; + } + } } |