Page MenuHome

Multi-Object-Editing: MESH_OT_vertices_smooth_laplacian
ClosedPublic

Authored by Habib Gahbiche (zazizizou) on Aug 30 2018, 12:33 AM.

Details

Summary

Since D3284 was inactive for a long time, I figured I could finish this.

This revision also gives warning when there are no selected faces or when selected faces are invalid.

Diff Detail

Repository
rB Blender
Branch
vertices_smooth_laplacian (branched from blender2.8)
Build Status
Buildable 1984
Build 1984: arc lint + arc unit

Event Timeline

Habib Gahbiche (zazizizou) edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Aug 31 2018, 4:46 PM
This revision was automatically updated to reflect the committed changes.

Thanks for the patch, committed with sorted changes:

  • Code style (e.g., space after if, tabs as indentation instead of spaces).
  • Fix checking for ngons (BM_ITER_MESH is a for loop, you need to break from it before continuing the object iteration loop).

Remember to test next time ;) (ngons were producing a crash), and please visit:

source/blender/editors/mesh/editmesh_tools.c
2324

In your original patch you were using continue here. However the BM_ITER_MESH is a for loop, so you were not breaking away from here. Fixed in the committed code.