Code Cleanup: pep8 edits
This commit is contained in:
@@ -493,7 +493,8 @@ class ShapeTransfer(Operator):
|
||||
|
||||
def execute(self, context):
|
||||
ob_act = context.active_object
|
||||
objects = [ob for ob in context.selected_editable_objects if ob != ob_act]
|
||||
objects = [ob for ob in context.selected_editable_objects
|
||||
if ob != ob_act]
|
||||
|
||||
if 1: # swap from/to, means we cant copy to many at once.
|
||||
if len(objects) != 1:
|
||||
|
@@ -819,7 +819,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
row.prop(md, "octree_depth")
|
||||
row.prop(md, "scale")
|
||||
|
||||
if md.mode == "SHARP":
|
||||
if md.mode == 'SHARP':
|
||||
layout.prop(md, "sharpness")
|
||||
|
||||
layout.prop(md, "remove_disconnected_pieces")
|
||||
|
@@ -128,9 +128,12 @@ class CLIP_PT_tools_marker(Panel):
|
||||
col.separator()
|
||||
|
||||
row = col.row(align=True)
|
||||
row.prop(settings, "use_default_red_channel", text="R", toggle=True)
|
||||
row.prop(settings, "use_default_green_channel", text="G", toggle=True)
|
||||
row.prop(settings, "use_default_blue_channel", text="B", toggle=True)
|
||||
row.prop(settings, "use_default_red_channel",
|
||||
text="R", toggle=True)
|
||||
row.prop(settings, "use_default_green_channel",
|
||||
text="G", toggle=True)
|
||||
row.prop(settings, "use_default_blue_channel",
|
||||
text="B", toggle=True)
|
||||
|
||||
col.separator()
|
||||
|
||||
@@ -155,7 +158,8 @@ class CLIP_PT_tools_marker(Panel):
|
||||
col.prop(settings, "default_pattern_match", text="")
|
||||
|
||||
col.separator()
|
||||
col.operator('clip.track_settings_as_default', text="Copy From Active Track")
|
||||
col.operator('clip.track_settings_as_default',
|
||||
text="Copy From Active Track")
|
||||
|
||||
|
||||
class CLIP_PT_tools_tracking(Panel):
|
||||
|
@@ -21,6 +21,7 @@ import bpy
|
||||
from bpy.types import Header, Menu, Panel
|
||||
from .properties_paint_common import UnifiedPaintPanel
|
||||
|
||||
|
||||
class ImagePaintPanel(UnifiedPaintPanel):
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'UI'
|
||||
|
Reference in New Issue
Block a user