Fix T43654: Radial distance for force fields was computed using the `vec_to_point`
vector, which already has the radial component removed.
This commit is contained in:
parent
3ec9ff16f8
commit
f4d8ce9781
Notes:
blender-bot
2023-02-14 09:29:43 +01:00
Referenced by issue #43654, force field "radial distance" has no effect
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue