diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-05-08 14:44:15 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-05-08 14:44:15 +0300 |
commit | 6950faa24eff7bf756ebed7e3d86e37966cabfc4 (patch) | |
tree | 17154b880a86d73c9578cac5739ee128672f9ec5 /release | |
parent | ebf924e0b79b6ebea4401d0b0f2e59e2c103a66d (diff) |
Normals Menu: fix Average to be able to specify type.
Also removed some rogue debugging printfs from normal selection code.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 33fc3ad28d6..3f67dbd9d6f 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3786,6 +3786,16 @@ class VIEW3D_MT_edit_mesh_normals_set_strength(Menu): op.set = True op.face_strength = 'STRONG' +class VIEW3D_MT_edit_mesh_normals_average(Menu): + bl_label = "Average" + + def draw(self, _context): + layout = self.layout + + layout.operator("mesh.average_normals", text="Custom Normal").average_type = 'CUSTOM_NORMAL' + layout.operator("mesh.average_normals", text="Face Area").average_type = 'FACE_AREA' + layout.operator("mesh.average_normals", text="Corner Angle").average_type = 'CORNER_ANGLE' + class VIEW3D_MT_edit_mesh_normals(Menu): bl_label = "Normals" @@ -3803,7 +3813,7 @@ class VIEW3D_MT_edit_mesh_normals(Menu): layout.operator("mesh.point_normals", text="Point to Target") layout.operator("mesh.merge_normals", text="Merge") layout.operator("mesh.split_normals", text="Split") - layout.operator("mesh.average_normals", text="Average") + layout.menu("VIEW3D_MT_edit_mesh_normals_average", text="Average") layout.separator() @@ -6489,6 +6499,7 @@ classes = ( VIEW3D_MT_edit_mesh_normals, VIEW3D_MT_edit_mesh_normals_select_strength, VIEW3D_MT_edit_mesh_normals_set_strength, + VIEW3D_MT_edit_mesh_normals_average, VIEW3D_MT_edit_mesh_shading, VIEW3D_MT_edit_mesh_weights, VIEW3D_MT_edit_mesh_clean, |