svn merge -r41638:41648 ^/trunk/blender
[blender-staging.git] / source / blender / blenkernel / intern / particle_system.c
index c759641f6a90ab24fd182676813515986e33befb..0caad66622689655694459acc4b02bc59d35658c 100644 (file)
@@ -3177,7 +3177,7 @@ static int collision_response(ParticleData *pa, ParticleCollision *col, BVHTreeR
                                mul_v3_fl(v1_tan, 1.0f - 0.01f * frict);
 
                                /* surface_velocity is opposite to cm velocity */
-                               mul_v3_v3fl(vr_tan, v1_tan, -1.0f);
+                               negate_v3_v3(vr_tan, v1_tan);
 
                                /* get back to global coordinates */
                                add_v3_v3(v1_tan, vc_tan);