diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-09 17:02:07 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-09 17:55:40 +0400 |
commit | f14e740dee3cdc23c23b37b9f6ba8a14a0bed811 (patch) | |
tree | 14aee064256aa7832404ba7a24763ac7a35e14e3 /source/blender/makesrna/intern/rna_scene.c | |
parent | 2af99b7437b9b590fbf81d28dc2c3f68b62f942d (diff) |
Implement Start Resolution for preview render in BI
So now viewport render resolution division works exactly the same as in Cycles.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index bce7d0062f2..13349446168 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -4436,7 +4436,15 @@ static void rna_def_scene_render_data(BlenderRNA *brna) RNA_def_property_range(prop, 8, 65536); RNA_def_property_ui_text(prop, "Tile Y", "Vertical tile size to use while rendering"); RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); - + + prop = RNA_def_property(srna, "preview_start_resolution", PROP_INT, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); + RNA_def_property_range(prop, 8, 16384); + RNA_def_property_int_default(prop, 64); + RNA_def_property_ui_text(prop, "Start Resolution", "Resolution to start rendering preview at, " + "progressively increasing it to the full viewport size"); + RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); + prop = RNA_def_property(srna, "pixel_aspect_x", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "xasp"); RNA_def_property_flag(prop, PROP_PROPORTIONAL); |