Fix Rocket asset lookup to use VFS correctly for .p3d

This commit is contained in:
Ed Swartz 2015-05-07 15:32:13 -05:00 committed by rdb
parent c854872714
commit 1fb49dc3f7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Open(const Rocket::Core::String& path) {
PT(VirtualFile) file = _vfs->get_file(fn);
if (file == NULL) {
// failed? Try model-path as a Panda-friendly fallback.
if (!fn.resolve_filename(get_model_path())) {
if (!_vfs->resolve_filename(fn, get_model_path())) {
rocket_cat.error() << "Could not resolve " << fn
<< " along the model-path (currently: " << get_model_path() << ")\n";
return (Rocket::Core::FileHandle) NULL;