Fix #141760: FBX export inadvertently modifies color property on lights

Broken with commit a12bce039f

The Blender `Color` type is treated as a reference in Python. Make a
`.copy` to ensure that changes are not made to the actual scene.

Pull Request: https://projects.blender.org/blender/blender/pulls/141762
This commit is contained in:
Jesse Yurkovich
2025-07-11 10:17:07 +02:00
committed by Bastien Montagne
parent 29a7b60a40
commit 6df4c14e4b

View File

@@ -603,7 +603,7 @@ def fbx_data_light_elements(root, lamp, scene_data):
elem_data_single_int32(light, b"GeometryVersion", FBX_GEOMETRY_VERSION) # Sic...
intensity = lamp.energy * 100.0 * pow(2.0, lamp.exposure)
color = lamp.color
color = lamp.color.copy()
if lamp.use_temperature:
temperature_color = lamp.temperature_color
color[0] *= temperature_color[0]