diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-20 22:50:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-20 22:50:18 +0400 |
commit | 15eb3452ecd96e4d79d438e8c954918639dc283d (patch) | |
tree | 438936332d24c6a1095cad0051fdd742c2f77d22 /release | |
parent | 2e20d3dc9610b702788092e9d72689b971ed9f69 (diff) |
style cleanup: pep8, also quiet compiler warning.
Diffstat (limited to 'release')
5 files changed, 11 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_operators/mesh.py b/release/scripts/startup/bl_operators/mesh.py index 2d4c703dbf2..a54de25dbc7 100644 --- a/release/scripts/startup/bl_operators/mesh.py +++ b/release/scripts/startup/bl_operators/mesh.py @@ -100,7 +100,7 @@ class MeshMirrorUV(Operator): vidxs[i] = tuple(sorted(l.vertex_index for l in loops[lstart:lend])) # As we have no poly.center yet... - pcents[i] = tuple(map(lambda x : x / p.loop_total, + pcents[i] = tuple(map(lambda x: x / p.loop_total, map(sum, zip(*(verts[idx].co for idx in vidxs[i]))))) # Preparing next step finding matching polys. diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py index 2c92fccf3b4..6297945f8bd 100644 --- a/release/scripts/startup/bl_operators/presets.py +++ b/release/scripts/startup/bl_operators/presets.py @@ -294,21 +294,22 @@ class AddPresetCloth(AddPresetBase, Operator): preset_subdir = "cloth" + class AddPresetFluid(AddPresetBase, Operator): '''Add a Fluid Preset''' bl_idname = "fluid.preset_add" bl_label = "Add Fluid Preset" preset_menu = "FLUID_MT_presets" - + preset_defines = [ "fluid = bpy.context.fluid" ] - + preset_values = [ "fluid.settings.viscosity_base", "fluid.settings.viscosity_exponent", ] - + preset_subdir = "fluid" diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py index 36941cdfbbf..c3f1c42d8a8 100644 --- a/release/scripts/startup/bl_ui/properties_game.py +++ b/release/scripts/startup/bl_ui/properties_game.py @@ -166,7 +166,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel): subsub.active = game.use_anisotropic_friction subsub.prop(game, "friction_coefficients", text="", slider=True) - elif physics_type =='SENSOR': + elif physics_type == 'SENSOR': col = layout.column() col.prop(game, "use_actor", text="Detect Actors") col.prop(ob, "hide_render", text="Invisible") diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 74abc8fe559..9200c688394 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -1185,7 +1185,7 @@ class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel): psys = context.particle_system split = layout.split(percentage=0.85) - + col = split.column() col.label(text="Vertex Group:") col.prop_search(psys, "vertex_group_density", ob, "vertex_groups", text="Density") @@ -1195,7 +1195,7 @@ class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel): col.prop_search(psys, "vertex_group_roughness_1", ob, "vertex_groups", text="Roughness 1") col.prop_search(psys, "vertex_group_roughness_2", ob, "vertex_groups", text="Roughness 2") col.prop_search(psys, "vertex_group_roughness_end", ob, "vertex_groups", text="Roughness End") - + col = split.column() col.label(text="Negate:") col.alignment = 'RIGHT' @@ -1206,7 +1206,7 @@ class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel): col.prop(psys, "invert_vertex_group_roughness_1", text="") col.prop(psys, "invert_vertex_group_roughness_2", text="") col.prop(psys, "invert_vertex_group_roughness_end", text="") - + # Commented out vertex groups don't work and are still waiting for better implementation # row = layout.row() # row.prop_search(psys, "vertex_group_velocity", ob, "vertex_groups", text="Velocity") diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 23b7a12753f..cec4bf125ee 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -20,6 +20,7 @@ import bpy from bpy.types import Panel, Menu + class FLUID_MT_presets(Menu): bl_label = "Fluid Presets" preset_subdir = "fluid" @@ -232,7 +233,7 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel): sub.menu("FLUID_MT_presets", text=bpy.types.FLUID_MT_presets.bl_label) sub.operator("fluid.preset_add", text="", icon='ZOOMIN') sub.operator("fluid.preset_add", text="", icon='ZOOMOUT').remove_active = True - + subsub = col.column(align=True) subsub.prop(fluid, "viscosity_base", text="Base") subsub.prop(fluid, "viscosity_exponent", text="Exponent", slider=True) |