Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2015-06-24 03:17:55 +0300
committerDalai Felinto <dfelinto@gmail.com>2015-06-24 03:19:58 +0300
commit227aefc18ba03e56909f4714455be3e40f2b721f (patch)
tree139ba3e71ab28869d041429fde3cf2597f1a5e01
parent0d4cca65933075ae26fd1dc0f51e56ad53f9205a (diff)
RNA: exposing image_user settings for ImageTextureNodes
This is required in order to access image sequence frame_duration and frame_offset among other settings.
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 19db101b32b..4df954b062b 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)