[Bf-blender-cvs] [227aefc] master: RNA: exposing image_user settings for ImageTextureNodes

Dalai Felinto noreply at git.blender.org
Wed Jun 24 02:20:33 CEST 2015


Commit: 227aefc18ba03e56909f4714455be3e40f2b721f
Author: Dalai Felinto
Date:   Tue Jun 23 21:17:55 2015 -0300
Branches: master
https://developer.blender.org/rB227aefc18ba03e56909f4714455be3e40f2b721f

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 19db101..4df954b 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -6399,14 +6399,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