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:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py57
1 files changed, 1 insertions, 56 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 357c673edbd..f9e42862b9c 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -18,7 +18,7 @@
# <pep8 compliant>
import bpy
-from bpy.types import Header, Menu, Operator, Panel
+from bpy.types import Header, Menu, Panel
class VIEW3D_HT_header(Header):
@@ -1551,61 +1551,6 @@ class VIEW3D_MT_edit_mesh_extrude(Menu):
self._extrude_funcs[menu_id](layout)
-class VIEW3D_OT_edit_mesh_extrude_individual_move(Operator):
- "Extrude individual elements and move"
- bl_label = "Extrude Individual and Move"
- bl_idname = "view3d.edit_mesh_extrude_individual_move"
-
- def execute(self, context):
- mesh = context.object.data
- select_mode = context.tool_settings.mesh_select_mode
-
- totface = mesh.total_face_sel
- totedge = mesh.total_edge_sel
- # totvert = mesh.total_vert_sel
-
- if select_mode[2] and totface == 1:
- bpy.ops.mesh.extrude_region_move('INVOKE_REGION_WIN', TRANSFORM_OT_translate={"constraint_orientation": 'NORMAL', "constraint_axis": (False, False, True)})
- elif select_mode[2] and totface > 1:
- bpy.ops.mesh.extrude_faces_move('INVOKE_REGION_WIN')
- elif select_mode[1] and totedge >= 1:
- bpy.ops.mesh.extrude_edges_move('INVOKE_REGION_WIN')
- else:
- bpy.ops.mesh.extrude_vertices_move('INVOKE_REGION_WIN')
-
- # ignore return from operators above because they are 'RUNNING_MODAL', and cause this one not to be freed. [#24671]
- return {'FINISHED'}
-
- def invoke(self, context, event):
- return self.execute(context)
-
-
-class VIEW3D_OT_edit_mesh_extrude_move(Operator):
- "Extrude and move along normals"
- bl_label = "Extrude and Move on Normals"
- bl_idname = "view3d.edit_mesh_extrude_move_normal"
-
- def execute(self, context):
- mesh = context.object.data
-
- totface = mesh.total_face_sel
- totedge = mesh.total_edge_sel
- # totvert = mesh.total_vert_sel
-
- if totface >= 1:
- bpy.ops.mesh.extrude_region_move('INVOKE_REGION_WIN', TRANSFORM_OT_translate={"constraint_orientation": 'NORMAL', "constraint_axis": (False, False, True)})
- elif totedge == 1:
- bpy.ops.mesh.extrude_region_move('INVOKE_REGION_WIN', TRANSFORM_OT_translate={"constraint_orientation": 'NORMAL', "constraint_axis": (True, True, False)})
- else:
- bpy.ops.mesh.extrude_region_move('INVOKE_REGION_WIN')
-
- # ignore return from operators above because they are 'RUNNING_MODAL', and cause this one not to be freed. [#24671]
- return {'FINISHED'}
-
- def invoke(self, context, event):
- return self.execute(context)
-
-
class VIEW3D_MT_edit_mesh_vertices(Menu):
bl_label = "Vertices"