[Bf-blender-cvs] [da342a7] temp_custom_loop_normals: Fix own stupid mistake in removing of 'use_current_clnors' option...

Bastien Montagne noreply at git.blender.org
Wed Feb 4 18:17:24 CET 2015


Commit: da342a79a4fa12fcdc76d0dccc4dfb398ed5e1c1
Author: Bastien Montagne
Date:   Wed Feb 4 18:16:49 2015 +0100
Branches: temp_custom_loop_normals
https://developer.blender.org/rBda342a79a4fa12fcdc76d0dccc4dfb398ed5e1c1

Fix own stupid mistake in removing of 'use_current_clnors' option...

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

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

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

diff --git a/source/blender/modifiers/intern/MOD_normal_edit.c b/source/blender/modifiers/intern/MOD_normal_edit.c
index 9c8849d..39881f4 100644
--- a/source/blender/modifiers/intern/MOD_normal_edit.c
+++ b/source/blender/modifiers/intern/MOD_normal_edit.c
@@ -329,9 +329,9 @@ static void normalEditModifier_do(NormalEditModifierData *smd, Object *ob, Deriv
 	MPoly *mpoly = dm->getPolyArray(dm);
 
 	const bool use_invert_vgroup = ((smd->flag & MOD_NORMALEDIT_INVERT_VGROUP) != 0);
-	const bool use_current_clnors = (smd->mix_mode == MOD_NORMALEDIT_MIX_COPY) &&
-	                                (smd->mix_factor == 1.0f) &&
-	                                (smd->defgrp_name[0] == '\0');
+	const bool use_current_clnors = !((smd->mix_mode == MOD_NORMALEDIT_MIX_COPY) &&
+	                                  (smd->mix_factor == 1.0f) &&
+	                                  (smd->defgrp_name[0] == '\0'));
 
 	int defgrp_index;
 	MDeformVert *dvert;




More information about the Bf-blender-cvs mailing list