From 8a6a7ee3e23e688009b7cbe86f1472b5ec42fa8b Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 20 Jun 2006 22:13:24 +0000 Subject: [PATCH] oops, legal not to have a cache dir --- panda/src/putil/bamCache.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/putil/bamCache.cxx b/panda/src/putil/bamCache.cxx index 89022226dd..2c57d1bf62 100644 --- a/panda/src/putil/bamCache.cxx +++ b/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); + } } ////////////////////////////////////////////////////////////////////