[Bf-blender-cvs] [a19e78aa2dd] master: Cleanup: redundant layer access

Campbell Barton noreply at git.blender.org
Sun Mar 17 11:15:16 CET 2019


Commit: a19e78aa2dd1cc1265eae206ff817bd2815c968f
Author: Campbell Barton
Date:   Sun Mar 17 19:39:21 2019 +1100
Branches: master
https://developer.blender.org/rBa19e78aa2dd1cc1265eae206ff817bd2815c968f

Cleanup: redundant layer access

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

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 9eda072b7d3..2cf15fa43a0 100644
--- a/source/blender/modifiers/intern/MOD_weighted_normal.c
+++ b/source/blender/modifiers/intern/MOD_weighted_normal.c
@@ -537,7 +537,6 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
 	const bool has_clnors = clnors != NULL;
 	if (!clnors) {
 		clnors = CustomData_add_layer(ldata, CD_CUSTOMLOOPNORMAL, CD_CALLOC, NULL, numLoops);
-		clnors = CustomData_get_layer(ldata, CD_CUSTOMLOOPNORMAL);
 	}
 
 	MDeformVert *dvert;



More information about the Bf-blender-cvs mailing list