Fix #124817: Incorrect Cycles "Cast Shadow" versioning

This commit fixes a issue where the Cycles "cast shadow" setting
versioning from Blender 4.1 to 4.2 wasn't working properly due to the
use of the wrong parameter name when grabbing the Blender 4.1 setting.

Pull Request: https://projects.blender.org/blender/blender/pulls/124834
This commit is contained in:
Alaska
2024-07-17 11:57:30 +02:00
committed by Clément Foucault
parent 3ca6aa19c9
commit 7438bf8e0f

View File

@@ -4156,7 +4156,7 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
IDProperty *clight = version_cycles_properties_from_ID(&light->id);
if (clight) {
bool value = version_cycles_property_boolean(
clight, "use_shadow", default_light->mode & LA_SHADOW);
clight, "cast_shadow", default_light->mode & LA_SHADOW);
SET_FLAG_FROM_TEST(light->mode, value, LA_SHADOW);
}
}