style cleanup: pep8
This commit is contained in:
@@ -121,12 +121,14 @@ class SaveDirty(Operator):
|
|||||||
if image.packed_file:
|
if image.packed_file:
|
||||||
if image.library:
|
if image.library:
|
||||||
self.report({'WARNING'},
|
self.report({'WARNING'},
|
||||||
"Packed library image: %r from library %r can't be re-packed" %
|
"Packed library image: %r from library %r"
|
||||||
|
" can't be re-packed" %
|
||||||
(image.name, image.library.filepath))
|
(image.name, image.library.filepath))
|
||||||
else:
|
else:
|
||||||
image.pack(as_png=True)
|
image.pack(as_png=True)
|
||||||
else:
|
else:
|
||||||
filepath = bpy.path.abspath(image.filepath, library=image.library)
|
filepath = bpy.path.abspath(image.filepath,
|
||||||
|
library=image.library)
|
||||||
if "\\" not in filepath and "/" not in filepath:
|
if "\\" not in filepath and "/" not in filepath:
|
||||||
self.report({'WARNING'}, "Invalid path: " + filepath)
|
self.report({'WARNING'}, "Invalid path: " + filepath)
|
||||||
elif filepath in unique_paths:
|
elif filepath in unique_paths:
|
||||||
|
@@ -129,9 +129,6 @@ class AddPresetBase():
|
|||||||
value = eval(rna_path)
|
value = eval(rna_path)
|
||||||
rna_recursive_attr_expand(value, rna_path, 1)
|
rna_recursive_attr_expand(value, rna_path, 1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
file_preset.close()
|
file_preset.close()
|
||||||
|
|
||||||
preset_menu_class.bl_label = bpy.path.display_name(filename)
|
preset_menu_class.bl_label = bpy.path.display_name(filename)
|
||||||
|
@@ -73,7 +73,6 @@ class MotionPathButtonsPanel():
|
|||||||
col.label(text="Not available yet...", icon='ERROR')
|
col.label(text="Not available yet...", icon='ERROR')
|
||||||
col.label(text="Calculate Paths first", icon='INFO')
|
col.label(text="Calculate Paths first", icon='INFO')
|
||||||
|
|
||||||
|
|
||||||
# Display Settings
|
# Display Settings
|
||||||
split = layout.split()
|
split = layout.split()
|
||||||
|
|
||||||
|
@@ -101,6 +101,7 @@ class CLIP_PT_clip_view_panel:
|
|||||||
|
|
||||||
return clip and sc.view == 'CLIP'
|
return clip and sc.view == 'CLIP'
|
||||||
|
|
||||||
|
|
||||||
class CLIP_PT_tracking_panel:
|
class CLIP_PT_tracking_panel:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Reference in New Issue
Block a user