From af5c5c55b7ff688c7a6a084bc80090de5ebacd09 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 17 Sep 2002 20:53:37 +0000 Subject: [PATCH] save model path --- panda/src/pgraph/loader.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panda/src/pgraph/loader.cxx b/panda/src/pgraph/loader.cxx index 626d900546..ed7d94e1e5 100644 --- a/panda/src/pgraph/loader.cxx +++ b/panda/src/pgraph/loader.cxx @@ -109,12 +109,13 @@ find_all_files(const Filename &filename, Loader::Results &results) const { } else { // Local filename, search along the path. + const DSearchPath &model_path = get_model_path(); DSearchPath::Results files; if (use_vfs) { VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr(); - num_added = vfs->find_all_files(filename, get_model_path(), files); + num_added = vfs->find_all_files(filename, model_path, files); } else { - num_added = get_model_path().find_all_files(filename, files); + num_added = model_path.find_all_files(filename, files); } for (int i = 0; i < num_added; i++) {