Cleanup: pep8
This commit is contained in:
@@ -76,8 +76,10 @@ def main():
|
||||
for l in fsrc:
|
||||
l = l[:-1]
|
||||
# weak but ok
|
||||
if ((("BMOpDefine" in l and l.split()[1] == "BMOpDefine") and "bmo_opdefines[]" not in l) or
|
||||
("static BMO_FlagSet " in l)):
|
||||
if (
|
||||
(("BMOpDefine" in l and l.split()[1] == "BMOpDefine") and "bmo_opdefines[]" not in l) or
|
||||
("static BMO_FlagSet " in l)
|
||||
):
|
||||
is_block = True
|
||||
block_ctx = []
|
||||
blocks.append((comment_ctx, block_ctx))
|
||||
|
||||
@@ -676,12 +676,14 @@ class CLIP_OT_setup_tracking_scene(Operator):
|
||||
setup_collection_recursively(
|
||||
vlayers["Foreground"].collections[0].children,
|
||||
"background",
|
||||
"holdout")
|
||||
"holdout",
|
||||
)
|
||||
|
||||
setup_collection_recursively(
|
||||
vlayers["Background"].collections[0].children,
|
||||
"foreground",
|
||||
"indirect_only")
|
||||
"indirect_only",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _wipeDefaultNodes(tree):
|
||||
|
||||
@@ -420,7 +420,7 @@ class ConstraintButtonsPanel:
|
||||
row.prop(con, "use_y", text="Y")
|
||||
row.prop(con, "use_z", text="Z")
|
||||
|
||||
row= layout.row()
|
||||
row = layout.row()
|
||||
row.prop(con, "use_offset")
|
||||
row = row.row()
|
||||
row.active = con.use_offset
|
||||
|
||||
@@ -164,7 +164,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
layout.prop(md, "hn_strength")
|
||||
layout.prop(md, "set_wn_strength")
|
||||
|
||||
|
||||
def BOOLEAN(self, layout, ob, md):
|
||||
split = layout.split()
|
||||
|
||||
@@ -1787,7 +1786,6 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
|
||||
row.prop(md, "create_materials")
|
||||
row.prop(md, "modify_color")
|
||||
|
||||
|
||||
def GP_COLOR(self, layout, ob, md):
|
||||
gpd = ob.data
|
||||
split = layout.split()
|
||||
|
||||
@@ -735,7 +735,6 @@ class AnnotationDataPanel:
|
||||
row.operator("gpencil.active_frame_delete", text="", icon='X')
|
||||
|
||||
|
||||
|
||||
class GreasePencilOnionPanel:
|
||||
@staticmethod
|
||||
def draw_settings(layout, gp):
|
||||
|
||||
@@ -306,6 +306,7 @@ class MATERIAL_PT_gpencil_options(GPMaterialButtonsPanel, Panel):
|
||||
gpcolor = ma.grease_pencil
|
||||
layout.prop(gpcolor, "pass_index")
|
||||
|
||||
|
||||
class MATERIAL_PT_gpencil_material_presets(PresetMenu):
|
||||
"""Material settings"""
|
||||
bl_label = "Material Presets"
|
||||
|
||||
@@ -262,7 +262,6 @@ class PHYSICS_PT_smoke_behavior(PhysicButtonsPanel, Panel):
|
||||
col.prop(domain, "vorticity")
|
||||
|
||||
|
||||
|
||||
class PHYSICS_PT_smoke_behavior_dissolve(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Dissolve"
|
||||
bl_parent_id = 'PHYSICS_PT_smoke_behavior'
|
||||
@@ -323,7 +322,6 @@ class PHYSICS_PT_smoke_flow_texture(PhysicButtonsPanel, Panel):
|
||||
|
||||
self.layout.prop(flow_smoke, "use_texture", text="")
|
||||
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
@@ -332,7 +330,6 @@ class PHYSICS_PT_smoke_flow_texture(PhysicButtonsPanel, Panel):
|
||||
ob = context.object
|
||||
flow_smoke = context.smoke.flow_settings
|
||||
|
||||
|
||||
sub = flow.column()
|
||||
sub.active = flow_smoke.use_texture
|
||||
sub.prop(flow_smoke, "noise_texture")
|
||||
@@ -350,6 +347,7 @@ class PHYSICS_PT_smoke_flow_texture(PhysicButtonsPanel, Panel):
|
||||
|
||||
sub.prop(flow_smoke, "texture_offset")
|
||||
|
||||
|
||||
class PHYSICS_PT_smoke_fire(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Flames"
|
||||
bl_parent_id = 'PHYSICS_PT_smoke'
|
||||
|
||||
@@ -196,6 +196,7 @@ class _defs_view3d_generic:
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
def _defs_annotate_factory():
|
||||
|
||||
class _defs_annotate:
|
||||
@@ -285,6 +286,7 @@ def _defs_annotate_factory():
|
||||
)
|
||||
return _defs_annotate
|
||||
|
||||
|
||||
# Needed so annotation gets a keymap per space type.
|
||||
_defs_annotate_image = _defs_annotate_factory()
|
||||
_defs_annotate_view3d = _defs_annotate_factory()
|
||||
@@ -984,6 +986,7 @@ class _defs_sculpt:
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class _defs_vertex_paint:
|
||||
|
||||
@staticmethod
|
||||
@@ -1153,7 +1156,6 @@ class _defs_gpencil_paint:
|
||||
row.template_greasepencil_color(gp_settings, "material", rows=3, cols=8, scale=0.8)
|
||||
row.prop(gp_settings, "pin_material", text="")
|
||||
|
||||
|
||||
@staticmethod
|
||||
def draw_settings_common(context, layout, tool):
|
||||
ob = context.active_object
|
||||
|
||||
@@ -246,6 +246,7 @@ class _draw_left_context_mode:
|
||||
layout.row().prop(brush, "puff_mode", expand=True)
|
||||
layout.prop(brush, "use_puff_volume")
|
||||
|
||||
|
||||
class INFO_MT_editor_menus(Menu):
|
||||
bl_idname = "INFO_MT_editor_menus"
|
||||
bl_label = ""
|
||||
|
||||
@@ -3069,8 +3069,8 @@ class VIEW3D_MT_edit_mesh_normals(Menu):
|
||||
layout.operator("mesh.smoothen_normals", text="Smoothen")
|
||||
|
||||
layout.label(text="Face Strength")
|
||||
layout.operator("mesh.mod_weighted_strength", text="Face select", icon = "FACESEL").set = False
|
||||
layout.operator("mesh.mod_weighted_strength", text="Set Strength", icon = "ZOOMIN").set = True
|
||||
layout.operator("mesh.mod_weighted_strength", text="Face Select", icon='FACESEL').set = False
|
||||
layout.operator("mesh.mod_weighted_strength", text="Set Strength", icon='ZOOMIN').set = True
|
||||
|
||||
|
||||
class VIEW3D_MT_edit_mesh_shading(Menu):
|
||||
|
||||
Reference in New Issue
Block a user