Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-07-09 17:02:07 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-07-09 17:55:40 +0400
commitf14e740dee3cdc23c23b37b9f6ba8a14a0bed811 (patch)
tree14aee064256aa7832404ba7a24763ac7a35e14e3 /source/blender/makesrna/intern
parent2af99b7437b9b590fbf81d28dc2c3f68b62f942d (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')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c10
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);