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:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-23 14:48:09 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-23 14:48:19 +0300
commitc48ebb44ae15b1238a6d86e98fee6cd1ff0cba73 (patch)
tree1770c262d637bed2f8703b9a9284652a1410123c
parentfd2b4a74c82b75cbbce393a878aa92021b56288d (diff)
Tidy up the user interface for depth of field based on feedback by
NudelZ on irc, thanks!
-rw-r--r--intern/cycles/blender/addon/ui.py8
-rw-r--r--release/scripts/startup/bl_ui/properties_data_camera.py10
-rw-r--r--source/blender/makesrna/intern/rna_scene.c4
3 files changed, 12 insertions, 10 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 1097b79ffa5..f0f256f979e 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -456,10 +456,12 @@ class CyclesCamera_PT_dof(CyclesButtonsPanel, Panel):
sub = col.row()
sub.active = cam.dof_object is None
sub.prop(cam, "dof_distance", text="Distance")
- col.prop(dof_options, "fstop")
- col.prop(dof_options, "use_high_quality")
+ sub = col.column(align=True)
+ sub.label("Viewport:")
+ sub.prop(dof_options, "use_high_quality")
+ sub.prop(dof_options, "fstop")
if dof_options.use_high_quality:
- col.prop(dof_options, "blades")
+ sub.prop(dof_options, "blades")
col = split.column()
diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py
index 6a0d680df53..bc66e39b48f 100644
--- a/release/scripts/startup/bl_ui/properties_data_camera.py
+++ b/release/scripts/startup/bl_ui/properties_data_camera.py
@@ -184,15 +184,15 @@ class DATA_PT_camera_dof(CameraButtonsPanel, Panel):
col = split.column()
col.label(text="Focus:")
col.prop(cam, "dof_object", text="")
- col.prop(dof_options, "use_high_quality")
-
- col = split.column()
- col.prop(dof_options, "fstop")
-
sub = col.column()
sub.active = (cam.dof_object is None)
sub.prop(cam, "dof_distance", text="Distance")
+ col = split.column(align=True)
+ col.label("Viewport:")
+ col.prop(dof_options, "use_high_quality")
+ col.prop(dof_options, "fstop")
+
if dof_options.use_high_quality:
col.prop(dof_options, "blades")
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index a0a0eedcfed..93bbb6d6491 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -3931,14 +3931,14 @@ static void rna_def_gpu_dof_fx(BlenderRNA *brna)
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "fstop", PROP_FLOAT, PROP_NONE);
- RNA_def_property_ui_text(prop, "Viewport F-stop", "F-stop for dof effect");
+ RNA_def_property_ui_text(prop, "F-stop", "F-stop for dof effect");
RNA_def_property_range(prop, 0.0f, FLT_MAX);
RNA_def_property_ui_range(prop, 0.1f, 128.0f, 10, 1);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "blades", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "num_blades");
- RNA_def_property_ui_text(prop, "Viewport Camera Blades", "Blades for dof effect");
+ RNA_def_property_ui_text(prop, "Blades", "Blades for dof effect");
RNA_def_property_range(prop, 0, 16);
RNA_def_property_int_funcs(prop, NULL, "rna_GPUDOFSettings_blades_set", NULL);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);