Lights: Rename Spot Size to Beam Angle in UI

This is more consistent with other naming of angles in the user interface,
and more clear.

The identifier has not changed, so no API compatibility is broken.

Fix #144527

Pull Request: https://projects.blender.org/blender/blender/pulls/144661
This commit is contained in:
Eqkoss / T1NT1N
2025-08-22 16:47:50 +02:00
committed by Brecht Van Lommel
parent 41b2ab6b40
commit 5658b408df
5 changed files with 6 additions and 6 deletions

View File

@@ -1639,7 +1639,7 @@ class CYCLES_LIGHT_PT_beam_shape(CyclesButtonsPanel, Panel):
col = layout.column()
if light.type == 'SPOT':
col.prop(light, "spot_size", text="Spot Size")
col.prop(light, "spot_size", text="Angle")
col.prop(light, "spot_blend", text="Blend", slider=True)
col.prop(light, "show_cone")
elif light.type == 'AREA':

View File

@@ -191,7 +191,7 @@ class STORM_HYDRA_LIGHT_PT_light(Panel):
elif light.type == 'SPOT':
col = main_col.column(align=True)
col.prop(light, 'spot_size', slider=True)
col.prop(light, 'spot_size', text="Angle", slider=True)
col.prop(light, 'spot_blend', slider=True)
main_col.prop(light, 'show_cone')

View File

@@ -255,7 +255,7 @@ class DATA_PT_spot(DataButtonsPanel, Panel):
col = layout.column()
col.prop(light, "spot_size", text="Size")
col.prop(light, "spot_size", text="Angle")
col.prop(light, "spot_blend", text="Blend", slider=True)
col.prop(light, "show_cone")

View File

@@ -3049,11 +3049,11 @@ class VIEW3D_MT_object_context_menu(Menu):
if light.type == 'SPOT':
layout.separator()
props = layout.operator("wm.context_modal_mouse", text="Adjust Spot Light Size")
props = layout.operator("wm.context_modal_mouse", text="Adjust Spot Light Beam Angle")
props.data_path_iter = "selected_editable_objects"
props.data_path_item = "data.spot_size"
props.input_scale = 0.01
props.header_text = rpt_("Spot Size: %.2f")
props.header_text = rpt_("Beam Angle: %.2f")
props = layout.operator("wm.context_modal_mouse", text="Adjust Spot Light Blend")
props.data_path_iter = "selected_editable_objects"

View File

@@ -518,7 +518,7 @@ static void rna_def_spot_light(BlenderRNA *brna)
prop = RNA_def_property(srna, "spot_size", PROP_FLOAT, PROP_ANGLE);
RNA_def_property_float_sdna(prop, nullptr, "spotsize");
RNA_def_property_range(prop, DEG2RADF(1.0f), DEG2RADF(180.0f));
RNA_def_property_ui_text(prop, "Spot Size", "Angle of the spotlight beam");
RNA_def_property_ui_text(prop, "Beam Angle", "Angular diameter of the spotlight beam");
RNA_def_property_update(prop, 0, "rna_Light_draw_update");
prop = RNA_def_property(srna, "show_cone", PROP_BOOLEAN, PROP_NONE);