Merge pull request #108356 from neonmoe/fix-incorrect-light-values-for-blender-imports

Fix incorrect light values on blend import
This commit is contained in:
Thaddeus Crews
2025-08-18 08:29:06 -05:00
2 changed files with 2 additions and 0 deletions

View File

@@ -146,6 +146,7 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
parameters_map["export_keep_originals"] = unpack_original_images;
parameters_map["export_format"] = "GLTF_SEPARATE";
parameters_map["export_yup"] = true;
parameters_map["export_import_convert_lighting_mode"] = "COMPAT";
if (p_options.has(SNAME("blender/nodes/custom_properties")) && p_options[SNAME("blender/nodes/custom_properties")]) {
parameters_map["export_extras"] = true;

View File

@@ -182,6 +182,7 @@ Light3D *GLTFLight::to_node() const {
return nullptr;
}
light->set_color(color.linear_to_srgb());
light->set_param(Light3D::PARAM_ATTENUATION, 2.0);
return light;
}