LineArt: Material flag versioning correction.
By the patch made it in master the version value already advanced (see https://developer.blender.org/D11839), so this versioning code needs to be moved down to that point.
This commit is contained in:
parent
e9dc6a0e09
commit
d91c266986
|
@ -583,11 +583,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)) {
|
||||
|
@ -618,6 +613,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)) {
|
||||
|
|
Loading…
Reference in New Issue