Cleanup: pep8 (indentation, spacing, long lines)

This commit is contained in:
2020-10-02 10:15:51 +10:00
parent bab9de2a52
commit 41d2d6da0c
104 changed files with 683 additions and 493 deletions

View File

@@ -103,7 +103,7 @@ class GPENCIL_OT_mesh_bake(Operator):
name="Target Object",
description="Grease Pencil Object",
items=my_objlist_callback
)
)
frame_target: IntProperty(
name="Target Frame",
description="Destination frame for the baked animation",

View File

@@ -447,10 +447,10 @@ class QuickLiquid(Operator):
bl_options = {'REGISTER', 'UNDO'}
show_flows: BoolProperty(
name="Render Liquid Objects",
description="Keep the liquid objects visible during rendering",
default=False,
)
name="Render Liquid Objects",
description="Keep the liquid objects visible during rendering",
default=False,
)
def execute(self, context):
if not bpy.app.build_options.fluid:
@@ -625,6 +625,7 @@ class QuickParticles(Operator):
pointcloud_object.show_bounds = True
return {'FINISHED'}
classes = (
QuickExplode,
QuickFur,

View File

@@ -388,12 +388,12 @@ class AddPresetFluid(AddPresetBase, Operator):
preset_defines = [
"fluid = bpy.context.fluid"
]
]
preset_values = [
"fluid.domain_settings.viscosity_base",
"fluid.domain_settings.viscosity_exponent",
]
]
preset_subdir = "fluid"

View File

@@ -559,7 +559,7 @@ def lightmap_uvpack(
def unwrap(operator, context, **kwargs):
# switch to object mode
# switch to object mode
is_editmode = context.object and context.object.mode == 'EDIT'
if is_editmode:
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)

View File

@@ -74,7 +74,7 @@ def applyVertexDirt(me, blur_iterations, blur_strength, clamp_dirt, clamp_clean,
tot_con = len(con[i])
if tot_con == 0:
ang = pi / 2.0 # assume 90°, i. e. flat
ang = pi / 2.0 # assume 90°, i. e. flat
else:
vec /= tot_con

View File

@@ -73,10 +73,10 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator):
bl_idname = "view3d.edit_mesh_extrude_move_normal"
dissolve_and_intersect: BoolProperty(
name="dissolve_and_intersect",
default=False,
description="Dissolves adjacent faces and intersects new geometry"
)
name="dissolve_and_intersect",
default=False,
description="Dissolves adjacent faces and intersects new geometry"
)
@classmethod
def poll(cls, context):