Переглянути джерело

oops, legal not to have a cache dir

David Rose 19 роки тому
батько
коміт
8a6a7ee3e2
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      panda/src/putil/bamCache.cxx

+ 4 - 1
panda/src/putil/bamCache.cxx

@@ -62,7 +62,10 @@ BamCache() :
 
   _flush_time = model_cache_flush;
   _max_kbytes = model_cache_max_kbytes;
-  set_root(model_cache_dir);
+
+  if (!model_cache_dir.empty()) {
+    set_root(model_cache_dir);
+  }
 }
 
 ////////////////////////////////////////////////////////////////////