style cleanup: pep8, also quiet compiler warning.
This commit is contained in:
@@ -131,7 +131,7 @@ def handle_args():
|
||||
dest="sphinx_theme",
|
||||
type=str,
|
||||
default='default',
|
||||
help =
|
||||
help=
|
||||
# see SPHINX_THEMES below
|
||||
"Sphinx theme (default='default')\n"
|
||||
"Available themes\n"
|
||||
|
@@ -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.
|
||||
|
@@ -294,6 +294,7 @@ class AddPresetCloth(AddPresetBase, Operator):
|
||||
|
||||
preset_subdir = "cloth"
|
||||
|
||||
|
||||
class AddPresetFluid(AddPresetBase, Operator):
|
||||
'''Add a Fluid Preset'''
|
||||
bl_idname = "fluid.preset_add"
|
||||
|
@@ -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")
|
||||
|
@@ -20,6 +20,7 @@
|
||||
import bpy
|
||||
from bpy.types import Panel, Menu
|
||||
|
||||
|
||||
class FLUID_MT_presets(Menu):
|
||||
bl_label = "Fluid Presets"
|
||||
preset_subdir = "fluid"
|
||||
|
@@ -228,10 +228,10 @@ static EdgeLoopPair *edbm_ripsel_looptag_helper(BMesh *bm)
|
||||
break;
|
||||
}
|
||||
|
||||
e_first = e;
|
||||
|
||||
/* initialize */
|
||||
e_first = e;
|
||||
v_step = e_first->v1;
|
||||
e_step = NULL; /* quiet warning, will never remain this value */
|
||||
|
||||
uid_start = uid;
|
||||
while ((e = edbm_ripsel_edge_mark_step(v_step, uid))) {
|
||||
|
Reference in New Issue
Block a user