diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-02-12 21:06:19 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-02-12 21:13:21 +0300 |
commit | eabd433f3511b7384987f59f6816e492c9aa1c1a (patch) | |
tree | 28e4986a8a2793ad0ce086743d94fefd64af610e /release/scripts/startup/bl_ui | |
parent | 44e104e25cb125da29c6270741cc76b3d35414da (diff) | |
parent | 5e613198e59124986ab3e4bdb8829f77e2284450 (diff) |
Merge remote-tracking branch 'origin/master' into cycles-ptex-49
Conflicts:
source/blender/gpu/GPU_extensions.h
Diffstat (limited to 'release/scripts/startup/bl_ui')
5 files changed, 40 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py index 0b0b9b6690d..7fc2c2ec084 100644 --- a/release/scripts/startup/bl_ui/properties_data_camera.py +++ b/release/scripts/startup/bl_ui/properties_data_camera.py @@ -177,6 +177,7 @@ class DATA_PT_camera_dof(CameraButtonsPanel, Panel): layout = self.layout cam = context.camera + dof_options = cam.gpu_dof layout.label(text="Focus:") @@ -187,6 +188,7 @@ class DATA_PT_camera_dof(CameraButtonsPanel, Panel): col.active = cam.dof_object is None col.prop(cam, "dof_distance", text="Distance") + col.prop(dof_options, "fstop", text="GPU fstop") class DATA_PT_camera_display(CameraButtonsPanel, Panel): diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 9969c568bf9..5b5a7648d83 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -361,7 +361,11 @@ class GreasePencilDataPanel: row = layout.row() col = row.column() - col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=5) + if len(gpd.layers) >= 2: + layer_rows = 5 + else: + layer_rows = 2 + col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=layer_rows) col = row.column() @@ -373,11 +377,12 @@ class GreasePencilDataPanel: if gpl: sub.operator("gpencil.layer_duplicate", icon='COPY_ID', text="") # XXX: needs a dedicated icon - col.separator() + if len(gpd.layers) > 1: + col.separator() - sub = col.column(align=True) - sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'UP' - sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'DOWN' + sub = col.column(align=True) + sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'UP' + sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'DOWN' if gpl: self.draw_layer(layout, gpl) diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py index f141c0b1b29..a5cbffb2e2c 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -92,9 +92,6 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel): sub.prop_search(cloth, "vertex_group_mass", ob, "vertex_groups", text="") sub.prop(cloth, "pin_stiffness", text="Stiffness") - col.label(text="Pre roll:") - col.prop(cloth, "pre_roll", text="Frames") - # Disabled for now """ if cloth.vertex_group_mass: diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index cda3dfe499d..ded307e8680 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -98,7 +98,12 @@ class FILEBROWSER_UL_dir(bpy.types.UIList): if self.layout_type in {'DEFAULT', 'COMPACT'}: row = layout.row(align=True) - row.prop(direntry, "name", text="", emboss=False, icon=icon) + row.enabled = direntry.is_valid + # Non-editable entries would show grayed-out, which is bad in this specific case, so switch to mere label. + if direntry.is_property_readonly('name'): + row.label(text=direntry.name, icon=icon) + else: + row.prop(direntry, "name", text="", emboss=False, icon=icon) elif self.layout_type in {'GRID'}: layout.alignment = 'CENTER' @@ -146,7 +151,9 @@ class FILEBROWSER_MT_bookmarks_specials(Menu): def draw(self, context): layout = self.layout + layout.operator("file.bookmark_cleanup", icon='X', text="Cleanup") + layout.separator() layout.operator("file.bookmark_move", icon='TRIA_UP_BAR', text="Move To Top").direction = 'TOP' layout.operator("file.bookmark_move", icon='TRIA_DOWN_BAR', text="Move To Bottom").direction = 'BOTTOM' diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index d2c95715a7e..b5bd13781f7 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2929,8 +2929,26 @@ class VIEW3D_PT_view3d_shading(Panel): col.prop(view, "show_textured_shadeless") col.prop(view, "show_backface_culling") - if obj and obj.mode == 'EDIT' and view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}: - col.prop(view, "show_occlude_wire") + + if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}: + if obj and obj.mode == 'EDIT': + col.prop(view, "show_occlude_wire") + + fx_settings = view.fx_settings + + sub = col.column() + sub.active = view.region_3d.view_perspective == 'CAMERA' + sub.prop(fx_settings, "use_dof") + + col.prop(fx_settings, "use_ssao", text="Ambient Occlusion") + if fx_settings.use_ssao: + ssao_settings = fx_settings.ssao + subcol = col.column(align=True) + subcol.prop(ssao_settings, "factor") + subcol.prop(ssao_settings, "distance_max") + subcol.prop(ssao_settings, "attenuation") + subcol.prop(ssao_settings, "samples") + subcol.prop(ssao_settings, "color") class VIEW3D_PT_view3d_motion_tracking(Panel): |