diff options
author | Scott Petrovic <scottpetrovic@gmail.com> | 2013-12-12 21:39:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-12 21:40:30 +0400 |
commit | c701082a928b4390f1fb910f2eb7520b45b4cdf1 (patch) | |
tree | f4112628d42741beec4b3922a6fdac7811c7949a /source/blender/makesrna/intern/rna_image.c | |
parent | 6c96535fd887c96cd013812d53085b28a5203d5a (diff) |
RNA: Add pixels property type
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c index 7ddb172e2a2..c901abc834e 100644 --- a/source/blender/makesrna/intern/rna_image.c +++ b/source/blender/makesrna/intern/rna_image.c @@ -701,6 +701,7 @@ static void rna_def_image(BlenderRNA *brna) prop = RNA_def_int_vector(srna, "size", 2, NULL, 0, 0, "Size", "Width and height in pixels, zero when image data cant be loaded", 0, 0); + RNA_def_property_subtype(prop, PROP_PIXEL); RNA_def_property_int_funcs(prop, "rna_Image_size_get", NULL, NULL); RNA_def_property_clear_flag(prop, PROP_EDITABLE); |