[Bf-blender-cvs] [680af761071] lineart-shadow: LineArt: Material flag versioning correction.
YimingWu
noreply at git.blender.org
Sat Jul 31 03:26:28 CEST 2021
Commit: 680af7610712f739fd9fdde1922c56b28d3224fd
Author: YimingWu
Date: Sat Jul 31 09:26:18 2021 +0800
Branches: lineart-shadow
https://developer.blender.org/rB680af7610712f739fd9fdde1922c56b28d3224fd
LineArt: Material flag versioning correction.
===================================================================
M source/blender/blenloader/intern/versioning_300.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 06e40e64717..a632c8c7fde 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -598,11 +598,6 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
sizeof(scene->master_collection->id.name) - 2);
}
}
- LISTBASE_FOREACH (Material *, mat, &bmain->materials) {
- if (!(mat->lineart.flags & LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS)) {
- mat->lineart.mat_occlusion = 1;
- }
- }
}
if (!MAIN_VERSION_ATLEAST(bmain, 300, 9)) {
@@ -633,6 +628,11 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
tool_settings->snap_uv_mode &= ~(1 << 4);
}
}
+ LISTBASE_FOREACH (Material *, mat, &bmain->materials) {
+ if (!(mat->lineart.flags & LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS)) {
+ mat->lineart.mat_occlusion = 1;
+ }
+ }
}
if (!MAIN_VERSION_ATLEAST(bmain, 300, 13)) {
More information about the Bf-blender-cvs
mailing list