mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fix cwiseProduct compile error when building with Eigen
This commit is contained in:
parent
5d5150c5aa
commit
52a4278b80
@ -951,7 +951,7 @@ operator /= (FLOATTYPE scalar) {
|
||||
INLINE_LINMATH void FLOATNAME(LMatrix3)::
|
||||
componentwise_mult(const FLOATNAME(LMatrix3) &other) {
|
||||
#ifdef HAVE_EIGEN
|
||||
_v = _v.cwiseProduct(other._v);
|
||||
_m = _m.cwiseProduct(other._m);
|
||||
#else
|
||||
_m(0, 0) *= other._m(0, 0);
|
||||
_m(0, 1) *= other._m(0, 1);
|
||||
|
@ -1253,7 +1253,7 @@ operator /= (FLOATTYPE scalar) {
|
||||
INLINE_LINMATH void FLOATNAME(LMatrix4)::
|
||||
componentwise_mult(const FLOATNAME(LMatrix4) &other) {
|
||||
#ifdef HAVE_EIGEN
|
||||
_v = _v.cwiseProduct(other._v);
|
||||
_m = _m.cwiseProduct(other._m);
|
||||
#else
|
||||
_m(0, 0) *= other._m(0, 0);
|
||||
_m(0, 1) *= other._m(0, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user