Cleanup: resolve pylint warnings
This commit is contained in:
@@ -287,7 +287,8 @@ PYGETTEXT_KEYWORDS = (() +
|
||||
for it in ("add_input", "add_output")) +
|
||||
|
||||
# Node socket declarations: names with contexts
|
||||
tuple((r"\.{}(?:<decl::.*?>\(|[^,]+,)\s*" + _msg_re + r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it)
|
||||
tuple((r"\.{}(?:<decl::.*?>\(|[^,]+,)\s*" + _msg_re +
|
||||
r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it)
|
||||
for it in ("add_input", "add_output")) +
|
||||
|
||||
# Node socket declarations: description and error messages
|
||||
|
||||
@@ -181,7 +181,6 @@ class GreasePencilBrushFalloff:
|
||||
if context.region.type == 'TOOL_HEADER':
|
||||
col.prop(brush, "curve_distance_falloff_preset", expand=True)
|
||||
else:
|
||||
row = col.row(align=True)
|
||||
col.prop(brush, "curve_distance_falloff_preset", text="")
|
||||
|
||||
if brush.curve_distance_falloff_preset == 'CUSTOM':
|
||||
|
||||
@@ -7056,7 +7056,7 @@ class VIEW3D_PT_overlay_object(Panel):
|
||||
sub.prop(overlay, "show_bones", text="Bones")
|
||||
sub.prop(overlay, "show_motion_paths")
|
||||
|
||||
can_show_object_origins = False if mode in {
|
||||
can_show_object_origins = mode not in {
|
||||
'PAINT_TEXTURE',
|
||||
'PAINT_2D',
|
||||
'SCULPT',
|
||||
@@ -7066,7 +7066,8 @@ class VIEW3D_PT_overlay_object(Panel):
|
||||
'PAINT_GREASE_PENCIL',
|
||||
'VERTEX_GREASE_PENCIL',
|
||||
'WEIGHT_GREASE_PENCIL',
|
||||
'SCULPT_GREASE_PENCIL'} else True
|
||||
'SCULPT_GREASE_PENCIL',
|
||||
}
|
||||
subsub = sub.column()
|
||||
subsub.active = can_show_object_origins
|
||||
subsub.prop(overlay, "show_object_origins", text="Origins")
|
||||
|
||||
Reference in New Issue
Block a user