rdb пре 16 година
родитељ
комит
92927fd25f
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      panda/src/grutil/movieTexture.cxx

+ 3 - 2
panda/src/grutil/movieTexture.cxx

@@ -214,7 +214,7 @@ do_read_one(const Filename &fullpath, const Filename &alpha_fullpath,
             bool header_only, BamCacheRecord *record) {
 
   nassertr(n == 0, false);
-  nassertr(z >= 0 && z < get_z_size(), false);
+  nassertr(z >= 0 && z < _z_size, false);
   
   if (record != (BamCacheRecord *)NULL) {
     record->add_dependent_file(fullpath);
@@ -238,7 +238,8 @@ do_read_one(const Filename &fullpath, const Filename &alpha_fullpath,
     if (!has_name()) {
       set_name(fullpath.get_basename_wo_extension());
     }
-    if (!has_filename()) {
+    // Don't use has_filename() here, it will cause a deadlock
+    if (_filename.empty()) {
       _filename = fullpath;
       _alpha_filename = alpha_fullpath;
     }