Browse Source

assertion error

David Rose 12 years ago
parent
commit
e0d23cd027
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/pnmimage/pfmFile.cxx

+ 2 - 0
panda/src/pnmimage/pfmFile.cxx

@@ -931,6 +931,8 @@ set_no_data_nan(int num_channels) {
 ////////////////////////////////////////////////////////////////////
 void PfmFile::
 set_no_data_value(const LPoint4f &no_data_value) {
+  nassertv(is_valid());
+
   _has_no_data_value = true;
   _no_data_value = no_data_value;
   switch (_num_channels) {