Cleanup: pep8
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
# <pep8-80 compliant>
|
# <pep8-80 compliant>
|
||||||
|
|
||||||
def url_prefill_from_blender(addon_info = None):
|
|
||||||
|
def url_prefill_from_blender(addon_info=None):
|
||||||
import bpy
|
import bpy
|
||||||
import bgl
|
import bgl
|
||||||
import struct
|
import struct
|
||||||
|
|||||||
@@ -655,7 +655,7 @@ class Gizmo(StructRNA):
|
|||||||
return (batch, shader)
|
return (batch, shader)
|
||||||
|
|
||||||
|
|
||||||
# Dummy class to keep the reference in `bpy_types_dict` and avoid
|
# Dummy class to keep the reference in `bpy_types_dict` and avoid
|
||||||
# erros like: "TypeError: expected GizmoGroup subclass of class ..."
|
# erros like: "TypeError: expected GizmoGroup subclass of class ..."
|
||||||
class GizmoGroup(StructRNA):
|
class GizmoGroup(StructRNA):
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ class PropertyPanel:
|
|||||||
"""
|
"""
|
||||||
bl_label = "Custom Properties"
|
bl_label = "Custom Properties"
|
||||||
bl_options = {'DEFAULT_CLOSED'}
|
bl_options = {'DEFAULT_CLOSED'}
|
||||||
bl_order = 1000 # Order panel after all others
|
bl_order = 1000 # Order panel after all others
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
|||||||
@@ -1152,6 +1152,7 @@ class CLIP_PT_tools_mask_transforms(MASK_PT_transforms, Panel):
|
|||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
bl_category = "Mask"
|
bl_category = "Mask"
|
||||||
|
|
||||||
|
|
||||||
class CLIP_PT_tools_mask_tools(MASK_PT_tools, Panel):
|
class CLIP_PT_tools_mask_tools(MASK_PT_tools, Panel):
|
||||||
bl_space_type = 'CLIP_EDITOR'
|
bl_space_type = 'CLIP_EDITOR'
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
@@ -1426,6 +1427,7 @@ class CLIP_MT_select_grouped(Menu):
|
|||||||
|
|
||||||
layout.operator_enum("clip.select_grouped", "group")
|
layout.operator_enum("clip.select_grouped", "group")
|
||||||
|
|
||||||
|
|
||||||
class CLIP_MT_mask_handle_type_menu(Menu):
|
class CLIP_MT_mask_handle_type_menu(Menu):
|
||||||
bl_label = "Set Handle Type"
|
bl_label = "Set Handle Type"
|
||||||
|
|
||||||
@@ -1434,6 +1436,7 @@ class CLIP_MT_mask_handle_type_menu(Menu):
|
|||||||
|
|
||||||
layout.operator_enum("mask.handle_type_set", "type")
|
layout.operator_enum("mask.handle_type_set", "type")
|
||||||
|
|
||||||
|
|
||||||
class CLIP_MT_tracking_context_menu(Menu):
|
class CLIP_MT_tracking_context_menu(Menu):
|
||||||
bl_label = "Context Menu"
|
bl_label = "Context Menu"
|
||||||
|
|
||||||
@@ -1512,6 +1515,7 @@ class CLIP_MT_tracking_context_menu(Menu):
|
|||||||
|
|
||||||
layout.operator("mask.delete")
|
layout.operator("mask.delete")
|
||||||
|
|
||||||
|
|
||||||
class CLIP_PT_camera_presets(PresetPanel, Panel):
|
class CLIP_PT_camera_presets(PresetPanel, Panel):
|
||||||
"""Predefined tracking camera intrinsics"""
|
"""Predefined tracking camera intrinsics"""
|
||||||
bl_label = "Camera Presets"
|
bl_label = "Camera Presets"
|
||||||
|
|||||||
@@ -173,9 +173,9 @@ class NODE_HT_header(Header):
|
|||||||
|
|
||||||
# Backdrop
|
# Backdrop
|
||||||
if is_compositor:
|
if is_compositor:
|
||||||
row=layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.prop(snode, "show_backdrop", toggle=True)
|
row.prop(snode, "show_backdrop", toggle=True)
|
||||||
sub=row.row(align=True)
|
sub = row.row(align=True)
|
||||||
sub.active = snode.show_backdrop
|
sub.active = snode.show_backdrop
|
||||||
sub.prop(snode, "backdrop_channels", icon_only=True, text="", expand=True)
|
sub.prop(snode, "backdrop_channels", icon_only=True, text="", expand=True)
|
||||||
|
|
||||||
|
|||||||
@@ -1348,7 +1348,6 @@ class SEQUENCER_PT_time(SequencerButtonsPanel, Panel):
|
|||||||
frame_offset_start = strip.frame_offset_start
|
frame_offset_start = strip.frame_offset_start
|
||||||
frame_offset_end = strip.frame_offset_end
|
frame_offset_end = strip.frame_offset_end
|
||||||
|
|
||||||
|
|
||||||
length_list = (
|
length_list = (
|
||||||
str(frame_start),
|
str(frame_start),
|
||||||
str(frame_final_end),
|
str(frame_final_end),
|
||||||
|
|||||||
Reference in New Issue
Block a user