[Bf-blender-cvs] [c48ebb4] master: Tidy up the user interface for depth of field based on feedback by NudelZ on irc, thanks!
Antony Riakiotakis
noreply at git.blender.org
Mon Mar 23 12:48:31 CET 2015
Commit: c48ebb44ae15b1238a6d86e98fee6cd1ff0cba73
Author: Antony Riakiotakis
Date: Mon Mar 23 12:48:09 2015 +0100
Branches: master
https://developer.blender.org/rBc48ebb44ae15b1238a6d86e98fee6cd1ff0cba73
Tidy up the user interface for depth of field based on feedback by
NudelZ on irc, thanks!
===================================================================
M intern/cycles/blender/addon/ui.py
M release/scripts/startup/bl_ui/properties_data_camera.py
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 1097b79..f0f256f 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 6a0d680..bc66e39 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 a0a0eed..93bbb6d 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);
More information about the Bf-blender-cvs
mailing list