Fix #72554: X-Ray Description "Alpha" -> "Opacity"
For xray_alpha and xray_alpha_wireframe replace the word "alpha" with "opacity" in the tooltip description to better suit its use in the interface, where 0 is transparent and 1 is fully opaque. Pull Request: https://projects.blender.org/blender/blender/pulls/133025
This commit is contained in:
committed by
Harley Acheson
parent
b9f241d468
commit
6de1e21ec6
@@ -4410,14 +4410,14 @@ static void rna_def_space_view3d_shading(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "xray_alpha", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "xray_alpha");
|
||||
RNA_def_property_ui_text(prop, "X-Ray Alpha", "Amount of alpha to use");
|
||||
RNA_def_property_ui_text(prop, "X-Ray Opacity", "Amount of opacity to use");
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, nullptr);
|
||||
|
||||
prop = RNA_def_property(srna, "xray_alpha_wireframe", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "xray_alpha_wire");
|
||||
RNA_def_property_ui_text(prop, "X-Ray Alpha", "Amount of alpha to use");
|
||||
RNA_def_property_ui_text(prop, "X-Ray Opacity", "Amount of opacity to use");
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user