From c64e515f9071c38ac23d14fa95f511e6d19066a8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Oct 2017 11:24:01 +1100 Subject: Cleanup: pep8/line length --- release/scripts/startup/bl_ui/space_view3d.py | 57 +++++++++++++++++++++------ 1 file changed, 45 insertions(+), 12 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 1086f22b8da..694a5fbd8c0 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -20,9 +20,9 @@ import bpy from bpy.types import Header, Menu, Panel from bl_ui.properties_grease_pencil_common import ( - GreasePencilDataPanel, - GreasePencilPaletteColorPanel, - ) + GreasePencilDataPanel, + GreasePencilPaletteColorPanel, +) from bl_ui.properties_paint_common import UnifiedPaintPanel from bpy.app.translations import contexts as i18n_contexts @@ -1263,7 +1263,12 @@ class INFO_MT_add(Menu): layout.operator_context = 'INVOKE_REGION_WIN' layout.operator("object.group_instance_add", text="Group Instance...", icon='OUTLINER_OB_GROUP_INSTANCE') else: - layout.operator_menu_enum("object.group_instance_add", "group", text="Group Instance", icon='OUTLINER_OB_GROUP_INSTANCE') + layout.operator_menu_enum( + "object.group_instance_add", + "group", + text="Group Instance", + icon='OUTLINER_OB_GROUP_INSTANCE', + ) # ********** Object menu ********** @@ -1539,17 +1544,41 @@ class VIEW3D_MT_object_apply(Menu): layout.separator() - layout.operator("object.transforms_to_deltas", text="Location to Deltas", text_ctxt=i18n_contexts.default).mode = 'LOC' - layout.operator("object.transforms_to_deltas", text="Rotation to Deltas", text_ctxt=i18n_contexts.default).mode = 'ROT' - layout.operator("object.transforms_to_deltas", text="Scale to Deltas", text_ctxt=i18n_contexts.default).mode = 'SCALE' - - layout.operator("object.transforms_to_deltas", text="All Transforms to Deltas", text_ctxt=i18n_contexts.default).mode = 'ALL' + layout.operator( + "object.transforms_to_deltas", + text="Location to Deltas", + text_ctxt=i18n_contexts.default, + ).mode = 'LOC' + layout.operator( + "object.transforms_to_deltas", + text="Rotation to Deltas", + text_ctxt=i18n_contexts.default, + ).mode = 'ROT' + layout.operator( + "object.transforms_to_deltas", + text="Scale to Deltas", + text_ctxt=i18n_contexts.default, + ).mode = 'SCALE' + + layout.operator( + "object.transforms_to_deltas", + text="All Transforms to Deltas", + text_ctxt=i18n_contexts.default, + ).mode = 'ALL' layout.operator("object.anim_transforms_to_deltas") layout.separator() - layout.operator("object.visual_transform_apply", text="Visual Transform", text_ctxt=i18n_contexts.default) - layout.operator("object.convert", text="Visual Geometry to Mesh", text_ctxt=i18n_contexts.default).target = 'MESH' + layout.operator( + "object.visual_transform_apply", + text="Visual Transform", + text_ctxt=i18n_contexts.default, + ) + layout.operator( + "object.convert", + text="Visual Geometry to Mesh", + text_ctxt=i18n_contexts.default, + ).target = 'MESH' layout.operator("object.duplicates_make_real") @@ -1824,7 +1853,10 @@ class VIEW3D_MT_vertex_group(Menu): if ob.vertex_groups.active: layout.separator() layout.operator("object.vertex_group_assign", text="Assign to Active Group") - layout.operator("object.vertex_group_remove_from", text="Remove from Active Group").use_all_groups = False + layout.operator( + "object.vertex_group_remove_from", + text="Remove from Active Group", + ).use_all_groups = False layout.operator("object.vertex_group_remove_from", text="Remove from All").use_all_groups = True layout.separator() @@ -3805,6 +3837,7 @@ class VIEW3D_PT_context_properties(Panel): # Draw with no edit button rna_prop_ui.draw(self.layout, context, member, object, False) + classes = ( VIEW3D_HT_header, VIEW3D_MT_editor_menus, -- cgit v1.2.3