[Bf-blender-cvs] [1278657cc2d] master: UI: rename Alpha to Opacity

Juan noreply at git.blender.org
Thu Jul 2 23:01:05 CEST 2020


Commit: 1278657cc2d8d7f3cd16d61cac34bbaa336d3dcf
Author: Juan
Date:   Thu Jul 2 16:46:26 2020 -0400
Branches: master
https://developer.blender.org/rB1278657cc2d8d7f3cd16d61cac34bbaa336d3dcf

UI: rename Alpha to Opacity

There was a discrepancy between the Tooltip of the Camera's Background Image that controls the opacity of the image and the operator's name that reads Alpha. The tooltip says **"Image opacity to blend the image against the background color"**, so it was renamed to Opacity to follow the tooltip.
The decision for this change is that the naming Alpha is not the most appropriated, since it has nothing to do if a loaded image has an embedded Alpha channel or not.

{F8540101}

Reviewed By: #user_interface, pablovazquez

Differential Revision: https://developer.blender.org/D7760

===================================================================

M	source/blender/makesrna/intern/rna_camera.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_camera.c b/source/blender/makesrna/intern/rna_camera.c
index 79ee9619e36..31a71a80bbc 100644
--- a/source/blender/makesrna/intern/rna_camera.c
+++ b/source/blender/makesrna/intern/rna_camera.c
@@ -264,7 +264,7 @@ static void rna_def_camera_background_image(BlenderRNA *brna)
   prop = RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "alpha");
   RNA_def_property_ui_text(
-      prop, "Alpha", "Image opacity to blend the image against the background color");
+      prop, "Opacity", "Image opacity to blend the image against the background color");
   RNA_def_property_range(prop, 0.0, 1.0);
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);



More information about the Bf-blender-cvs mailing list