[Bf-blender-cvs] [fe04bf0800e] greasepencil-object: Use weight in Hook modifier

Antonio Vazquez noreply at git.blender.org
Sat Nov 25 16:10:29 CET 2017


Commit: fe04bf0800eb04c085dffe08324bb2d978b24db2
Author: Antonio Vazquez
Date:   Sat Nov 25 16:10:22 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rBfe04bf0800eb04c085dffe08324bb2d978b24db2

Use weight in Hook modifier

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

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

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

diff --git a/source/blender/modifiers/intern/MOD_gpencilhook.c b/source/blender/modifiers/intern/MOD_gpencilhook.c
index 06361fa0394..5be476f733c 100644
--- a/source/blender/modifiers/intern/MOD_gpencilhook.c
+++ b/source/blender/modifiers/intern/MOD_gpencilhook.c
@@ -182,7 +182,7 @@ static void gp_hook_co_apply(struct GPHookData_cb *tData, float weight, bGPDspoi
 	if (fac) {
 		float co_tmp[3];
 		mul_v3_m4v3(co_tmp, tData->mat, &pt->x);
-		interp_v3_v3v3(&pt->x, &pt->x, co_tmp, fac);
+		interp_v3_v3v3(&pt->x, &pt->x, co_tmp, fac * weight);
 	}
 }



More information about the Bf-blender-cvs mailing list