Browse Source

search in current directory too

David Rose 24 years ago
parent
commit
ab35f28160
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/text/dynamicTextFont.cxx

+ 2 - 1
panda/src/text/dynamicTextFont.cxx

@@ -73,7 +73,8 @@ DynamicTextFont(const Filename &font_filename, int face_index) {
   }
   }
 
 
   Filename path(font_filename);
   Filename path(font_filename);
-  if (!path.resolve_filename(get_model_path())) {
+  path.resolve_filename(get_model_path());
+  if (!path.exists()) {
     text_cat.error()
     text_cat.error()
       << "Unable to find font file " << font_filename << "\n";
       << "Unable to find font file " << font_filename << "\n";
   } else {
   } else {