mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
linmath: work around obscure MSVC optimization bug with Eigen
This commit is contained in:
parent
6127ff5c4a
commit
818ed57894
@ -157,11 +157,6 @@ FLOATNAME(LMatrix3)(const FLOATNAME(LVecBase3) &row0,
|
||||
const FLOATNAME(LVecBase3) &row2) {
|
||||
TAU_PROFILE("LMatrix3::LMatrix3(const LVecBase3 &, ...)", " ", TAU_USER);
|
||||
|
||||
#ifdef HAVE_EIGEN
|
||||
_m.row(0) = row0._v;
|
||||
_m.row(1) = row1._v;
|
||||
_m.row(2) = row2._v;
|
||||
#else
|
||||
_m(0, 0) = row0._v(0);
|
||||
_m(0, 1) = row0._v(1);
|
||||
_m(0, 2) = row0._v(2);
|
||||
@ -171,7 +166,6 @@ FLOATNAME(LMatrix3)(const FLOATNAME(LVecBase3) &row0,
|
||||
_m(2, 0) = row2._v(0);
|
||||
_m(2, 1) = row2._v(1);
|
||||
_m(2, 2) = row2._v(2);
|
||||
#endif // HAVE_EIGEN
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user