|
|
@@ -1140,7 +1140,11 @@ rotate_mat(FLOATTYPE angle, FLOATNAME(LVecBase3) axis,
|
|
|
// Cannot rotate about a zero-length axis.
|
|
|
nassertr(length_sq != 0.0, ident_mat());
|
|
|
FLOATTYPE recip_length = 1.0/csqrt(length_sq);
|
|
|
- axis *= recip_length;
|
|
|
+// axis *= recip_length;
|
|
|
+
|
|
|
+ axis_0 *= recip_length;
|
|
|
+ axis_1 *= recip_length;
|
|
|
+ axis_2 *= recip_length;
|
|
|
|
|
|
FLOATTYPE angle_rad=deg_2_rad(angle);
|
|
|
FLOATTYPE s,c;
|