diff options
author | Adrian Newton <TFS> | 2020-03-27 02:47:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-27 02:49:15 +0300 |
commit | f1fb3eb97540202fa9e3b07eda40fa2da6ed72b7 (patch) | |
tree | f0f9d6a2644f0cd40ce5f9e4a1f6c37999bb6455 /source/blender/makesrna/intern | |
parent | d663c9d8daa127d44f47545534deba054c27beee (diff) |
UI: use pixel unit for generated image dimensions
Differential Revision: https://developer.blender.org/D7171
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c index f3f1666e25e..73504200020 100644 --- a/source/blender/makesrna/intern/rna_image.c +++ b/source/blender/makesrna/intern/rna_image.c @@ -1001,7 +1001,7 @@ static void rna_def_image(BlenderRNA *brna) RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_generated_update"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); - prop = RNA_def_property(srna, "generated_width", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "generated_width", PROP_INT, PROP_PIXEL); RNA_def_property_int_sdna(prop, NULL, "gen_x"); RNA_def_property_flag(prop, PROP_PROPORTIONAL); RNA_def_property_range(prop, 1, 65536); @@ -1009,7 +1009,7 @@ static void rna_def_image(BlenderRNA *brna) RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_generated_update"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); - prop = RNA_def_property(srna, "generated_height", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "generated_height", PROP_INT, PROP_PIXEL); RNA_def_property_int_sdna(prop, NULL, "gen_y"); RNA_def_property_flag(prop, PROP_PROPORTIONAL); RNA_def_property_range(prop, 1, 65536); |