mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
another hack
This commit is contained in:
parent
dd5e676818
commit
ed6aa9f28d
@ -786,7 +786,7 @@ rotate_mat(FLOATTYPE angle, FLOATNAME(LVecBase3) axis,
|
||||
// which is what we usually pass in anyway. screws up if you happen to
|
||||
// pass in something like (.5,.5,0). need to add flag parameter so caller
|
||||
// can request normalization if needed
|
||||
if((axis_0+axis_1+axis_2) != 1.0) {
|
||||
if((cabs(axis_0)+cabs(axis_1)+cabs(axis_2)) != 1.0) {
|
||||
FLOATTYPE length_sq = axis_0 * axis_0 + axis_1 * axis_1 + axis_2 * axis_2;
|
||||
#ifdef _DEBUG
|
||||
nassertr(length_sq != 0.0, ident_mat());
|
||||
|
@ -1143,7 +1143,7 @@ rotate_mat(FLOATTYPE angle, FLOATNAME(LVecBase3) axis,
|
||||
// which is what we usually pass in anyway. screws up if you happen to
|
||||
// pass in something like (.5,.5,0). need to add flag parameter so caller
|
||||
// can request normalization if needed
|
||||
if((axis_0+axis_1+axis_2) != 1.0) {
|
||||
if((cabs(axis_0)+cabs(axis_1)+cabs(axis_2)) != 1.0) {
|
||||
FLOATTYPE length_sq = axis_0 * axis_0 + axis_1 * axis_1 + axis_2 * axis_2;
|
||||
#ifdef _DEBUG
|
||||
nassertr(length_sq != 0.0, ident_mat());
|
||||
|
Loading…
x
Reference in New Issue
Block a user