style cleanup: pep8
This commit is contained in:
parent
e79c29a1d6
commit
eb22b52482
@ -121,12 +121,14 @@ class SaveDirty(Operator):
|
||||
if image.packed_file:
|
||||
if image.library:
|
||||
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))
|
||||
else:
|
||||
image.pack(as_png=True)
|
||||
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:
|
||||
self.report({'WARNING'}, "Invalid path: " + filepath)
|
||||
elif filepath in unique_paths:
|
||||
|
@ -129,9 +129,6 @@ class AddPresetBase():
|
||||
value = eval(rna_path)
|
||||
rna_recursive_attr_expand(value, rna_path, 1)
|
||||
|
||||
|
||||
|
||||
|
||||
file_preset.close()
|
||||
|
||||
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="Calculate Paths first", icon='INFO')
|
||||
|
||||
|
||||
# Display Settings
|
||||
split = layout.split()
|
||||
|
||||
|
@ -101,6 +101,7 @@ class CLIP_PT_clip_view_panel:
|
||||
|
||||
return clip and sc.view == 'CLIP'
|
||||
|
||||
|
||||
class CLIP_PT_tracking_panel:
|
||||
|
||||
@classmethod
|
||||
|
@ -93,7 +93,7 @@ class VIEW3D_HT_header(Header):
|
||||
if snap_element != 'INCREMENT':
|
||||
row.prop(toolsettings, "snap_target", text="")
|
||||
if obj:
|
||||
if obj.mode in {'OBJECT','POSE'} and snap_element != 'VOLUME':
|
||||
if obj.mode in {'OBJECT', 'POSE'} and snap_element != 'VOLUME':
|
||||
row.prop(toolsettings, "use_snap_align_rotation", text="")
|
||||
elif obj.mode == 'EDIT':
|
||||
row.prop(toolsettings, "use_snap_self", text="")
|
||||
|
Loading…
Reference in New Issue
Block a user