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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to