Fix: Make new FBX importer support Light exposure

7e0dad0580 added Light exposure import to Python FBX importer,
but not to the new C++ one

Pull Request: https://projects.blender.org/blender/blender/pulls/139292
This commit is contained in:
Aras Pranckevicius
2025-05-22 20:31:56 +02:00
committed by Aras Pranckevicius
parent b3eb84f624
commit 8e8d2e7aec
2 changed files with 10 additions and 1 deletions

View File

@@ -563,7 +563,15 @@ class Report:
desc.write(f"==== Lights: {len(bpy.data.lights)}\n")
for light in bpy.data.lights:
desc.write(
f"- Light '{light.name}' {light.type} col:({light.color[0]:.3f}, {light.color[1]:.3f}, {light.color[2]:.3f}) energy:{light.energy:.3f}\n")
f"- Light '{light.name}' {light.type} col:({light.color[0]:.3f}, {light.color[1]:.3f}, {light.color[2]:.3f}) energy:{light.energy:.3f}")
if light.exposure != 0:
desc.write(f" exposure:{fmtf(light.exposure)}")
if light.use_temperature:
desc.write(
f" temp:{fmtf(light.temperature)}")
if not light.normalize:
desc.write(f" normalize_off")
desc.write(f"\n")
if isinstance(light, bpy.types.SpotLight):
desc.write(f" - spot {light.spot_size:.3f} blend {light.spot_blend:.3f}\n")
Report._write_animdata_desc(light.animation_data, desc)