code cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful var...
[blender.git] / source / blender / blenkernel / intern / constraint.c
index 4d9f0fc769cc1200220fe228cf4886dfdfae4eb2..12fa16e32730253807af429f7711910ea96622ce 100644 (file)
@@ -1204,8 +1204,8 @@ static void followpath_get_tarmat(bConstraint *con, bConstraintOb *cob, bConstra
                                        vec_to_quat(quat, dir, (short)data->trackflag, (short)data->upflag);
                                        
                                        normalize_v3(dir);
-                                       q[0] = (float)cos(0.5 * vec[3]);
-                                       x1 = (float)sin(0.5 * vec[3]);
+                                       q[0] = cosf(0.5 * vec[3]);
+                                       x1 = sinf(0.5 * vec[3]);
                                        q[1] = -x1 * dir[0];
                                        q[2] = -x1 * dir[1];
                                        q[3] = -x1 * dir[2];