[Bf-blender-cvs] [9eb20f9] ui-preview-buttons: RNA property naming

Campbell Barton noreply at git.blender.org
Mon May 11 06:51:30 CEST 2015


Commit: 9eb20f9b3317caabcc8147d9e7533c069c909846
Author: Campbell Barton
Date:   Mon May 11 14:51:09 2015 +1000
Branches: ui-preview-buttons
https://developer.blender.org/rB9eb20f9b3317caabcc8147d9e7533c069c909846

RNA property naming

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

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

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

diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index 35d2c58..85a20ad 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -512,7 +512,7 @@ static void rna_ImagePreview_pixels_set(PointerRNA *ptr, const int *values, enum
 	prv_img->flag[size] |= PRV_USER_EDITED;
 }
 
-static void rna_ImagePreview_image_is_custom_set(PointerRNA *ptr, int value)
+static void rna_ImagePreview_is_image_custom_set(PointerRNA *ptr, int value)
 {
 	rna_ImagePreview_is_custom_set(ptr, value, ICON_SIZE_PREVIEW);
 }
@@ -542,7 +542,7 @@ static void rna_ImagePreview_image_pixels_set(PointerRNA *ptr, const int *values
 	rna_ImagePreview_pixels_set(ptr, values, ICON_SIZE_PREVIEW);
 }
 
-static void rna_ImagePreview_icon_is_custom_set(PointerRNA *ptr, int value)
+static void rna_ImagePreview_is_icon_custom_set(PointerRNA *ptr, int value)
 {
 	rna_ImagePreview_is_custom_set(ptr, value, ICON_SIZE_ICON);
 }
@@ -711,9 +711,9 @@ static void rna_def_image_preview(BlenderRNA *brna)
 	RNA_def_struct_sdna(srna, "PreviewImage");
 	RNA_def_struct_ui_text(srna, "Image Preview", "Preview image and icon");
 
-	prop = RNA_def_property(srna, "image_is_custom", PROP_BOOLEAN, PROP_NONE);
+	prop = RNA_def_property(srna, "is_image_custom", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag[ICON_SIZE_PREVIEW]", PRV_USER_EDITED);
-	RNA_def_property_boolean_funcs(prop, NULL, "rna_ImagePreview_image_is_custom_set");
+	RNA_def_property_boolean_funcs(prop, NULL, "rna_ImagePreview_is_image_custom_set");
 	RNA_def_property_ui_text(prop, "Custom Image", "True if this preview image has been modified by py script,"
 	                         "and is no more auto-generated by Blender");
 
@@ -730,9 +730,9 @@ static void rna_def_image_preview(BlenderRNA *brna)
 	RNA_def_property_int_funcs(prop, "rna_ImagePreview_image_pixels_get", "rna_ImagePreview_image_pixels_set", NULL);
 
 
-	prop = RNA_def_property(srna, "icon_is_custom", PROP_BOOLEAN, PROP_NONE);
+	prop = RNA_def_property(srna, "is_icon_custom", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag[ICON_SIZE_ICON]", PRV_USER_EDITED);
-	RNA_def_property_boolean_funcs(prop, NULL, "rna_ImagePreview_icon_is_custom_set");
+	RNA_def_property_boolean_funcs(prop, NULL, "rna_ImagePreview_is_icon_custom_set");
 	RNA_def_property_ui_text(prop, "Custom Icon", "True if this preview icon has been modified by py script,"
 	                         "and is no more auto-generated by Blender");




More information about the Bf-blender-cvs mailing list