RNA: exposing image_user settings for ImageTextureNodes

This is required in order to access image sequence frame_duration and
frame_offset among other settings.
This commit is contained in:
Dalai Felinto 2015-06-23 21:17:55 -03:00
parent 0d4cca6593
commit 227aefc18b
1 changed files with 3 additions and 5 deletions

View File

@ -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)