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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-04 22:10:50 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-04 22:10:50 +0400
commit7b47a4125fa4219a0f6c1a3e8c78047211caaa53 (patch)
tree7f4c4978cd5c31f820befee0f3f59338f0b6a386 /release
parent77934cfaed55b559637e37ce9c158cd703cec360 (diff)
Camera UI: tweaking panels, move clipping back because it's not part of the
preset, and move depth of field settings to a separate panel.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_camera.py35
1 files changed, 21 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py
index 4061a331261..0abbf281754 100644
--- a/release/scripts/startup/bl_ui/properties_data_camera.py
+++ b/release/scripts/startup/bl_ui/properties_data_camera.py
@@ -98,21 +98,15 @@ class DATA_PT_lens(CameraButtonsPanel, Panel):
split = layout.split()
- col = split.column()
- col.label(text="Depth of Field:")
-
- col.prop(cam, "dof_object", text="")
-
- col = col.column()
- if cam.dof_object is not None:
- col.enabled = False
- col.prop(cam, "dof_distance", text="Distance")
-
col = split.column(align=True)
col.label(text="Shift:")
col.prop(cam, "shift_x", text="X")
col.prop(cam, "shift_y", text="Y")
+ col = split.column(align=True)
+ col.label(text="Clipping:")
+ col.prop(cam, "clip_start", text="Start")
+ col.prop(cam, "clip_end", text="End")
class DATA_PT_camera(CameraButtonsPanel, Panel):
bl_label = "Camera"
@@ -143,11 +137,24 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
col = split.column(align=True)
col.prop(cam, "sensor_fit", text="")
- layout.label(text="Clipping:")
- row = layout.row(align=True)
- row.prop(cam, "clip_start", text="Start")
- row.prop(cam, "clip_end", text="End")
+class DATA_PT_camera_dof(CameraButtonsPanel, Panel):
+ bl_label = "Depth of Field"
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
+ def draw(self, context):
+ layout = self.layout
+
+ cam = context.camera
+
+ layout.label(text="Focus:")
+
+ split = layout.split()
+ split.prop(cam, "dof_object", text="")
+
+ col = split.column()
+
+ col.active = cam.dof_object is None
+ col.prop(cam, "dof_distance", text="Distance")
class DATA_PT_camera_display(CameraButtonsPanel, Panel):
bl_label = "Display"