diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-15 10:26:38 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-15 10:26:38 +0300 |
commit | 0e8dd13c48abc1e9d8afc0fd8e1dbc2dadfe989b (patch) | |
tree | 8af450043562e7a6d199787d06063adb755fe340 /source/blender/makesrna/intern/rna_texture.c | |
parent | 3664670f2a06de5974ac1a36e3521fc0eab1ff61 (diff) |
Fix [#20437] Impossible to load "voxel data" sequence file from
texture panel (field missing?)
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index 79a75c89a08..11d99b6f356 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -1772,6 +1772,18 @@ static void rna_def_texture_voxeldata(BlenderRNA *brna) RNA_def_property_struct_type(prop, "VoxelData"); RNA_def_property_ui_text(prop, "Voxel Data", "The voxel data associated with this texture"); RNA_def_property_update(prop, 0, "rna_Texture_update"); + + prop= RNA_def_property(srna, "image", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "ima"); + RNA_def_property_struct_type(prop, "Image"); + RNA_def_property_flag(prop, PROP_EDITABLE); + RNA_def_property_ui_text(prop, "Image", ""); + RNA_def_property_update(prop, 0, "rna_Texture_update"); + + prop= RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NEVER_NULL); + RNA_def_property_pointer_sdna(prop, NULL, "iuser"); + RNA_def_property_ui_text(prop, "Image User", "Parameters defining which layer, pass and frame of the image is displayed."); + RNA_def_property_update(prop, 0, "rna_Texture_update"); } static void rna_def_texture(BlenderRNA *brna) |