EEVEE-Next: Rename light probes

Update to the new naming convention for `Light Probes`:

`Reflection Cubemap` -> `Sphere`
`Reflection Plane` -> `Plane`
`Irradiance Grid` -> `Volume`

Note that this breaks the Python API (`bpy.types.LightProbe.type`).

Pull Request: https://projects.blender.org/blender/blender/pulls/113452
This commit is contained in:
Miguel Pozo
2023-10-11 19:38:42 +02:00
parent 58bd6ef165
commit 1ba16edaf0
19 changed files with 95 additions and 91 deletions

View File

@@ -43,13 +43,13 @@ def setup():
# Does not work in edit mode
try:
# Simple probe setup
bpy.ops.object.lightprobe_add(type='CUBEMAP', location=(0.5, 0, 1.5))
bpy.ops.object.lightprobe_add(type='SPHERE', location=(0.5, 0, 1.5))
cubemap = bpy.context.selected_objects[0]
cubemap.scale = (2.5, 2.5, 1.0)
cubemap.data.falloff = 0
cubemap.data.clip_start = 2.4
bpy.ops.object.lightprobe_add(type='GRID', location=(0, 0, 0.25))
bpy.ops.object.lightprobe_add(type='VOLUME', location=(0, 0, 0.25))
grid = bpy.context.selected_objects[0]
grid.scale = (1.735, 1.735, 1.735)
grid.data.grid_resolution_x = 3