Cleanup: trailing space, remove tabs, pep8
This commit is contained in:
@@ -210,4 +210,3 @@ def unregister():
|
||||
|
||||
if __name__ == "__main__":
|
||||
register()
|
||||
|
||||
|
@@ -459,6 +459,7 @@ class DATA_PT_vertex_colors(MeshButtonsPanel, Panel):
|
||||
col.operator("mesh.vertex_color_add", icon='ADD', text="")
|
||||
col.operator("mesh.vertex_color_remove", icon='REMOVE', text="")
|
||||
|
||||
|
||||
class DATA_PT_remesh(MeshButtonsPanel, Panel):
|
||||
bl_label = "Remesh"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@@ -48,6 +48,7 @@ class GPENCIL_MT_color_context_menu(Menu):
|
||||
|
||||
layout.operator("object.material_slot_remove_unused")
|
||||
|
||||
|
||||
class GPENCIL_UL_matslots(UIList):
|
||||
def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
|
||||
slot = item
|
||||
@@ -164,6 +165,7 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
|
||||
if gpcolor.mode == 'LINE' and gpcolor.stroke_style != 'TEXTURE':
|
||||
col.prop(gpcolor, "use_overlap_strokes")
|
||||
|
||||
|
||||
class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
|
||||
bl_label = "Fill"
|
||||
bl_parent_id = 'MATERIAL_PT_gpencil_surface'
|
||||
@@ -274,7 +276,8 @@ class MATERIAL_PT_gpencil_material_presets(PresetPanel, Panel):
|
||||
preset_add_operator = "scene.gpencil_material_preset_add"
|
||||
|
||||
|
||||
classes = (GPENCIL_UL_matslots,
|
||||
classes = (
|
||||
GPENCIL_UL_matslots,
|
||||
GPENCIL_MT_color_context_menu,
|
||||
MATERIAL_PT_gpencil_slots,
|
||||
MATERIAL_PT_gpencil_preview,
|
||||
@@ -283,7 +286,8 @@ classes = (GPENCIL_UL_matslots,
|
||||
MATERIAL_PT_gpencil_strokecolor,
|
||||
MATERIAL_PT_gpencil_fillcolor,
|
||||
MATERIAL_PT_gpencil_options,
|
||||
MATERIAL_PT_gpencil_custom_props,)
|
||||
MATERIAL_PT_gpencil_custom_props,
|
||||
)
|
||||
|
||||
if __name__ == "__main__": # only for live edit.
|
||||
from bpy.utils import register_class
|
||||
|
@@ -125,6 +125,7 @@ class CONSOLE_MT_console(Menu):
|
||||
|
||||
layout.operator("console.autocomplete", text="Autocomplete")
|
||||
|
||||
|
||||
class CONSOLE_MT_context_menu(Menu):
|
||||
bl_label = "Console Context Menu"
|
||||
|
||||
|
@@ -113,6 +113,7 @@ class INFO_MT_context_menu(Menu):
|
||||
layout.operator("info.report_copy", text="Copy")
|
||||
layout.operator("info.report_delete", text="Delete")
|
||||
|
||||
|
||||
classes = (
|
||||
INFO_HT_header,
|
||||
INFO_MT_editor_menus,
|
||||
|
@@ -1002,6 +1002,7 @@ class _defs_sculpt:
|
||||
draw_settings=draw_settings,
|
||||
)
|
||||
|
||||
|
||||
class _defs_vertex_paint:
|
||||
|
||||
@staticmethod
|
||||
|
@@ -2654,7 +2654,6 @@ class VIEW3D_MT_make_links(Menu):
|
||||
layout.operator("object.join_uvs") # stupid place to add this!
|
||||
|
||||
|
||||
|
||||
class VIEW3D_MT_brush_paint_modes(Menu):
|
||||
bl_label = "Enabled Modes"
|
||||
|
||||
@@ -2849,27 +2848,27 @@ class VIEW3D_MT_sculpt(Menu):
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Smooth Mask')
|
||||
props.filter_type = 'SMOOTH'
|
||||
props.auto_iteration_count = True;
|
||||
props.auto_iteration_count = True
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Sharpen Mask')
|
||||
props.filter_type = 'SHARPEN'
|
||||
props.auto_iteration_count = True;
|
||||
props.auto_iteration_count = True
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Grow Mask')
|
||||
props.filter_type = 'GROW'
|
||||
props.auto_iteration_count = True;
|
||||
props.auto_iteration_count = True
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Shrink Mask')
|
||||
props.filter_type = 'SHRINK'
|
||||
props.auto_iteration_count = True;
|
||||
props.auto_iteration_count = True
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Increase Contrast')
|
||||
props.filter_type = 'CONTRAST_INCREASE'
|
||||
props.auto_iteration_count = False;
|
||||
props.auto_iteration_count = False
|
||||
|
||||
props = layout.operator("sculpt.mask_filter", text='Decrease Contrast')
|
||||
props.filter_type = 'CONTRAST_DECREASE'
|
||||
props.auto_iteration_count = False;
|
||||
props.auto_iteration_count = False
|
||||
|
||||
layout.separator()
|
||||
|
||||
@@ -4813,6 +4812,7 @@ class VIEW3D_MT_proportional_editing_falloff_pie(Menu):
|
||||
|
||||
pie.prop(tool_settings, "proportional_edit_falloff", expand=True)
|
||||
|
||||
|
||||
class VIEW3D_MT_sculpt_mask_edit_pie(Menu):
|
||||
bl_label = "Mask Edit"
|
||||
|
||||
@@ -4826,22 +4826,22 @@ class VIEW3D_MT_sculpt_mask_edit_pie(Menu):
|
||||
op.mode = 'VALUE'
|
||||
op = pie.operator("sculpt.mask_filter", text='Smooth Mask')
|
||||
op.filter_type = 'SMOOTH'
|
||||
op.auto_iteration_count = True;
|
||||
op.auto_iteration_count = True
|
||||
op = pie.operator("sculpt.mask_filter", text='Sharpen Mask')
|
||||
op.filter_type = 'SHARPEN'
|
||||
op.auto_iteration_count = True;
|
||||
op.auto_iteration_count = True
|
||||
op = pie.operator("sculpt.mask_filter", text='Grow Mask')
|
||||
op.filter_type = 'GROW'
|
||||
op.auto_iteration_count = True;
|
||||
op.auto_iteration_count = True
|
||||
op = pie.operator("sculpt.mask_filter", text='Shrink Mask')
|
||||
op.filter_type = 'SHRINK'
|
||||
op.auto_iteration_count = True;
|
||||
op.auto_iteration_count = True
|
||||
op = pie.operator("sculpt.mask_filter", text='Increase Contrast')
|
||||
op.filter_type = 'CONTRAST_INCREASE'
|
||||
op.auto_iteration_count = False;
|
||||
op.auto_iteration_count = False
|
||||
op = pie.operator("sculpt.mask_filter", text='Decrease Contrast')
|
||||
op.filter_type = 'CONTRAST_DECREASE'
|
||||
op.auto_iteration_count = False;
|
||||
op.auto_iteration_count = False
|
||||
|
||||
|
||||
# ********** Panel **********
|
||||
|
@@ -1158,6 +1158,7 @@ class VIEW3D_PT_sculpt_dyntopo_remesh(Panel, View3DPaintPanel):
|
||||
col = flow.column()
|
||||
col.operator("sculpt.detail_flood_fill")
|
||||
|
||||
|
||||
class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel):
|
||||
bl_context = ".sculpt_mode" # dot on purpose (access from topbar)
|
||||
bl_label = "Remesh"
|
||||
@@ -1191,6 +1192,7 @@ class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel):
|
||||
|
||||
# TODO, move to space_view3d.py
|
||||
|
||||
|
||||
class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
|
||||
bl_context = ".sculpt_mode" # dot on purpose (access from topbar)
|
||||
bl_label = "Options"
|
||||
|
@@ -133,8 +133,10 @@ seek(bpy.data, 'bpy.data', 0)
|
||||
'''
|
||||
for d in dir(bpy.types):
|
||||
t = getattr(bpy.types, d)
|
||||
try: r = t.bl_rna
|
||||
except: r = None
|
||||
try:
|
||||
r = t.bl_rna
|
||||
except:
|
||||
r = None
|
||||
if r:
|
||||
seek(r, 'bpy.types.' + d + '.bl_rna', 0)
|
||||
'''
|
||||
|
Reference in New Issue
Block a user