[Bf-blender-cvs] [643e015] blender-v2.75-release: RNA: exposing image_user settings for ImageTextureNodes

Dalai Felinto noreply at git.blender.org
Mon Jun 29 16:18:14 CEST 2015


Commit: 643e015664bd5afd01158faf170886be9cea1fd0
Author: Dalai Felinto
Date:   Tue Jun 23 21:17:55 2015 -0300
Branches: blender-v2.75-release
https://developer.blender.org/rB643e015664bd5afd01158faf170886be9cea1fd0

RNA: exposing image_user settings for ImageTextureNodes

This is required in order to access image sequence frame_duration and
frame_offset among other settings.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index d0cb0b9..c9c507f 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -6402,14 +6402,12 @@ static void def_tex_image(StructRNA *srna)
 	RNA_def_property_ui_text(prop, "Image", "");
 	RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
 
-	/* is this supposed to be exposed? not sure.. */
-#if 0
-	prop = RNA_def_property(srna, "settings", PROP_POINTER, PROP_NONE);
+	prop = RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE);
 	RNA_def_property_pointer_sdna(prop, NULL, "storage");
 	RNA_def_property_struct_type(prop, "ImageUser");
-	RNA_def_property_ui_text(prop, "Settings", "");
+	RNA_def_property_ui_text(prop, "Image User",
+	                         "Parameters defining the image duration, offset and related settings");
 	RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
-#endif
 }
 
 static void def_tex_bricks(StructRNA *srna)




More information about the Bf-blender-cvs mailing list