Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-10-19 03:24:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-19 03:31:28 +0300
commitc64e515f9071c38ac23d14fa95f511e6d19066a8 (patch)
tree9504ba3afcfbfecde051a4a8608862bbc917acc5 /release
parent3859f5ec286ac6330fe751172a03bdddbb089137 (diff)
Cleanup: pep8/line length
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py57
1 files changed, 45 insertions, 12 deletions
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,