From 775c69b53d92affc3a572235522b4159630335a9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sun, 23 Oct 2016 19:14:39 -0700 Subject: [PATCH] PfmFile::set_point() should allow NaN's --- panda/src/pnmimage/pfmFile.I | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/pnmimage/pfmFile.I b/panda/src/pnmimage/pfmFile.I index 42625aeb32..b8f63272f0 100644 --- a/panda/src/pnmimage/pfmFile.I +++ b/panda/src/pnmimage/pfmFile.I @@ -82,7 +82,7 @@ get_point1(int x, int y) const { */ INLINE void PfmFile:: set_point1(int x, int y, PN_float32 point) { - nassertv(!cnan(point)); + //nassertv(!cnan(point)); nassertv(x >= 0 && x < _x_size && y >= 0 && y < _y_size); _table[(y * _x_size + x) * _num_channels] = point; @@ -105,7 +105,7 @@ get_point2(int x, int y) const { */ INLINE void PfmFile:: set_point2(int x, int y, const LVecBase2f &point) { - nassertv(!point.is_nan()); + //nassertv(!point.is_nan()); nassertv(x >= 0 && x < _x_size && y >= 0 && y < _y_size); switch (_num_channels) { @@ -202,7 +202,7 @@ get_point3(int x, int y) const { */ INLINE void PfmFile:: set_point3(int x, int y, const LVecBase3f &point) { - nassertv(!point.is_nan()); + //nassertv(!point.is_nan()); nassertv(x >= 0 && x < _x_size && y >= 0 && y < _y_size); switch (_num_channels) { @@ -264,7 +264,7 @@ get_point4(int x, int y) const { */ INLINE void PfmFile:: set_point4(int x, int y, const LVecBase4f &point) { - nassertv(!point.is_nan()); + //nassertv(!point.is_nan()); nassertv(x >= 0 && x < _x_size && y >= 0 && y < _y_size); switch (_num_channels) {