Cycles: OSL Camera: Use title case for parameters in the UI

This is an alternate solution to !146889 to improve labels in the
camera UI, while being much less invasive. It doesn't take custom
labels into account, but it simply uses the parameter names with title
case.

Pull Request: https://projects.blender.org/blender/blender/pulls/148141
This commit is contained in:
Damien Picard
2025-10-16 15:38:59 +02:00
committed by Lukas Stockner
parent b597c0f1ed
commit 0a0d3678a6
2 changed files with 3 additions and 3 deletions

View File

@@ -1210,7 +1210,7 @@ class CYCLES_CAMERA_PT_lens_custom_parameters(CyclesButtonsPanel, Panel):
col = layout.column()
for key in ccam.keys():
col.prop(ccam, f'["{key}"]')
col.prop(ccam, f'["{key}"]', text=bpy.path.display_name(key))
class CYCLES_PT_context_material(CyclesButtonsPanel, Panel):