[Bf-blender-cvs] [f4d8ce9] master: Fix T43654: Radial distance for force fields was computed using the `vec_to_point` vector, which already has the radial component removed.

Lukas Tönne noreply at git.blender.org
Thu Aug 20 11:58:19 CEST 2015


Commit: f4d8ce97810476d0f0bf27809ab411081f0042f8
Author: Lukas Tönne
Date:   Thu Aug 20 11:57:03 2015 +0200
Branches: master
https://developer.blender.org/rBf4d8ce97810476d0f0bf27809ab411081f0042f8

Fix T43654: Radial distance for force fields was computed using the `vec_to_point`
vector, which already has the radial component removed.

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

M	source/blender/blenkernel/intern/effect.c

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

diff --git a/source/blender/blenkernel/intern/effect.c b/source/blender/blenkernel/intern/effect.c
index b0b9372..6459e2e 100644
--- a/source/blender/blenkernel/intern/effect.c
+++ b/source/blender/blenkernel/intern/effect.c
@@ -506,7 +506,7 @@ float effector_falloff(EffectorCache *eff, EffectorData *efd, EffectedPoint *UNU
 			if (falloff == 0.0f)
 				break;
 
-			madd_v3_v3v3fl(temp, efd->vec_to_point, efd->nor, -fac);
+			madd_v3_v3v3fl(temp, efd->vec_to_point2, efd->nor, -fac);
 			r_fac= len_v3(temp);
 			falloff*= falloff_func_rad(eff->pd, r_fac);
 			break;




More information about the Bf-blender-cvs mailing list