[Bf-blender-cvs] [50e32a7744a] soc-2017-normal-tools: Fix some build warnings in new weighted normals modifier code.

Bastien Montagne noreply at git.blender.org
Thu Oct 12 18:19:59 CEST 2017


Commit: 50e32a7744aedeb1dc456bfee36082776bc44efe
Author: Bastien Montagne
Date:   Thu Oct 12 18:17:54 2017 +0200
Branches: soc-2017-normal-tools
https://developer.blender.org/rB50e32a7744aedeb1dc456bfee36082776bc44efe

Fix some build warnings in new weighted normals modifier code.

===================================================================

M	source/blender/modifiers/intern/MOD_weighted_normal.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_weighted_normal.c b/source/blender/modifiers/intern/MOD_weighted_normal.c
index b55d2f1ba9a..2a073a0885c 100644
--- a/source/blender/modifiers/intern/MOD_weighted_normal.c
+++ b/source/blender/modifiers/intern/MOD_weighted_normal.c
@@ -162,7 +162,7 @@ static void loop_split_worker(WeightedNormalModifierData *wnmd, pair *mode_pair,
 {
 	if (e2l_prev) {
 		int *e2lfan_curr = e2l_prev;
-		MLoop *mlfan_curr = ml_prev;
+		const MLoop *mlfan_curr = ml_prev;
 		int mlfan_curr_index = ml_prev_index;
 		int mlfan_vert_index = ml_curr_index;
 		int mpfan_curr_index = mp_index;
@@ -202,7 +202,7 @@ static void loop_split_worker(WeightedNormalModifierData *wnmd, pair *mode_pair,
 	}
 }
 
-static void apply_weights_vertex_normal(WeightedNormalModifierData *wnmd, Object *ob, DerivedMesh *dm,
+static void apply_weights_vertex_normal(WeightedNormalModifierData *wnmd, Object *UNUSED(ob), DerivedMesh *UNUSED(dm),
 	short(*clnors)[2], MVert *mvert, const int numVerts, MEdge *medge,
 	const int numEdges, MLoop *mloop, const int numLoops, MPoly *mpoly,
 	const int numPoly, float(*polynors)[3], MDeformVert *dvert, int defgrp_index,



More information about the Bf-blender-cvs mailing list