[Bf-blender-cvs] [66ec6c1f50d] master: Fix misleading image color space and alpha tooltips

Brecht Van Lommel noreply at git.blender.org
Sun May 26 12:49:27 CEST 2019


Commit: 66ec6c1f50d2629ec6b120b1bde07c73ddd0824d
Author: Brecht Van Lommel
Date:   Sun May 26 12:37:51 2019 +0200
Branches: master
https://developer.blender.org/rB66ec6c1f50d2629ec6b120b1bde07c73ddd0824d

Fix misleading image color space and alpha tooltips

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

M	source/blender/makesrna/intern/rna_color.c
M	source/blender/makesrna/intern/rna_image.c

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

diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index 6c4470b19cc..30ab591d3c9 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -1249,7 +1249,10 @@ static void rna_def_colormanage(BlenderRNA *brna)
                               "rna_ColorManagedColorspaceSettings_colorspace_get",
                               "rna_ColorManagedColorspaceSettings_colorspace_set",
                               "rna_ColorManagedColorspaceSettings_colorspace_itemf");
-  RNA_def_property_ui_text(prop, "Input Color Space", "Color space of the image or movie on disk");
+  RNA_def_property_ui_text(
+      prop,
+      "Input Color Space",
+      "Color space in the image file, to convert to and from when saving and loading the image");
   RNA_def_property_update(prop, NC_WINDOW, "rna_ColorManagedColorspaceSettings_reload_update");
 
   prop = RNA_def_property(srna, "is_data", PROP_BOOLEAN, PROP_NONE);
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 7f2eccf421e..d5cefaefbb1 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -918,8 +918,10 @@ static void rna_def_image(BlenderRNA *brna)
   prop = RNA_def_property(srna, "alpha_mode", PROP_ENUM, PROP_NONE);
   RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
   RNA_def_property_enum_items(prop, alpha_mode_items);
-  RNA_def_property_ui_text(
-      prop, "Alpha Mode", "Representation of alpha information in the RGBA pixels");
+  RNA_def_property_ui_text(prop,
+                           "Alpha Mode",
+                           "Representation of alpha in the image file, to convert to and from "
+                           "when saving and loading the image");
   RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_colormanage_update");
 
   /* multiview */



More information about the Bf-blender-cvs mailing list