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 'source/blender/bmesh/operators/bmo_smooth_laplacian.c')
-rw-r--r--source/blender/bmesh/operators/bmo_smooth_laplacian.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source/blender/bmesh/operators/bmo_smooth_laplacian.c b/source/blender/bmesh/operators/bmo_smooth_laplacian.c
index acdb49e94e1..bf376a757ef 100644
--- a/source/blender/bmesh/operators/bmo_smooth_laplacian.c
+++ b/source/blender/bmesh/operators/bmo_smooth_laplacian.c
@@ -229,13 +229,17 @@ static void init_laplacian_matrix(LaplacianSystem *sys)
sys->zerola[idv1] = 1;
sys->zerola[idv2] = 1;
sys->zerola[idv3] = 1;
- if (has_4_vert) sys->zerola[idv4] = 1;
+ if (has_4_vert) {
+ sys->zerola[idv4] = 1;
+ }
}
sys->ring_areas[idv1] += areaf;
sys->ring_areas[idv2] += areaf;
sys->ring_areas[idv3] += areaf;
- if (has_4_vert) sys->ring_areas[idv4] += areaf;
+ if (has_4_vert) {
+ sys->ring_areas[idv4] += areaf;
+ }
if (has_4_vert) {
@@ -478,9 +482,13 @@ void bmo_smooth_laplacian_vert_exec(BMesh *bm, BMOperator *op)
BMVert *v;
LaplacianSystem *sys;
- if (bm->totface == 0) return;
+ if (bm->totface == 0) {
+ return;
+ }
sys = init_laplacian_system(bm->totedge, bm->totface, bm->totvert);
- if (!sys) return;
+ if (!sys) {
+ return;
+ }
sys->bm = bm;
sys->op = op;