Cleanup: pep8
This commit is contained in:
@@ -258,7 +258,6 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
|
||||
# if obj_type == 'MESH' or is_empty_image:
|
||||
# col.prop(obj, "show_transparent", text="Transparency")
|
||||
|
||||
|
||||
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
|
||||
|
||||
col = flow.column()
|
||||
@@ -273,7 +272,6 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
|
||||
row.active = obj.show_bounds or (obj.draw_type == 'BOUNDS')
|
||||
row.prop(obj, "draw_bounds_type", text="")
|
||||
|
||||
|
||||
if is_geometry or is_empty_image:
|
||||
# Only useful with object having faces/materials...
|
||||
col = flow.column()
|
||||
|
||||
@@ -218,7 +218,6 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
|
||||
|
||||
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
|
||||
|
||||
|
||||
col = flow.column()
|
||||
col.prop(rd, "use_stamp_date", text="Date")
|
||||
col = flow.column()
|
||||
@@ -238,7 +237,6 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
|
||||
col = flow.column()
|
||||
col.prop(rd, "use_stamp_lens", text="Lens")
|
||||
|
||||
|
||||
col = flow.column()
|
||||
col.prop(rd, "use_stamp_scene", text="Scene")
|
||||
col = flow.column()
|
||||
@@ -341,7 +339,7 @@ class RENDER_PT_output_views(RenderButtonsPanel, Panel):
|
||||
|
||||
class RENDER_PT_encoding(RenderButtonsPanel, Panel):
|
||||
bl_label = "Encoding"
|
||||
bl_parent_id ="RENDER_PT_output"
|
||||
bl_parent_id = "RENDER_PT_output"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
|
||||
|
||||
@@ -364,9 +362,10 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel):
|
||||
layout.prop(rd.ffmpeg, "format")
|
||||
layout.prop(ffmpeg, "use_autosplit")
|
||||
|
||||
|
||||
class RENDER_PT_encoding_video(RenderButtonsPanel, Panel):
|
||||
bl_label = "Video"
|
||||
bl_parent_id ="RENDER_PT_encoding"
|
||||
bl_parent_id = "RENDER_PT_encoding"
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
|
||||
|
||||
@classmethod
|
||||
@@ -384,7 +383,6 @@ class RENDER_PT_encoding_video(RenderButtonsPanel, Panel):
|
||||
|
||||
self.draw_vcodec(context)
|
||||
|
||||
|
||||
def draw_vcodec(self, context):
|
||||
"""Video codec options."""
|
||||
layout = self.layout
|
||||
@@ -434,7 +432,7 @@ class RENDER_PT_encoding_video(RenderButtonsPanel, Panel):
|
||||
|
||||
class RENDER_PT_encoding_audio(RenderButtonsPanel, Panel):
|
||||
bl_label = "Audio"
|
||||
bl_parent_id ="RENDER_PT_encoding"
|
||||
bl_parent_id = "RENDER_PT_encoding"
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -5026,6 +5026,7 @@ class VIEW3D_MT_gpencil_sculpt_specials(Menu):
|
||||
layout.separator()
|
||||
layout.menu("VIEW3D_MT_gpencil_autoweights")
|
||||
|
||||
|
||||
classes = (
|
||||
VIEW3D_HT_header,
|
||||
VIEW3D_MT_editor_menus,
|
||||
|
||||
Reference in New Issue
Block a user