Browse Source

assume flt filenames are os-specific.

David Rose 23 years ago
parent
commit
2fdcdf33b0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pandatool/src/flt/fltExternalReference.cxx
  2. 1 1
      pandatool/src/flt/fltTexture.cxx

+ 1 - 1
pandatool/src/flt/fltExternalReference.cxx

@@ -59,7 +59,7 @@ output(ostream &out) const {
 ////////////////////////////////////////////////////////////////////
 Filename FltExternalReference::
 get_ref_filename() const {
-  Filename file(_filename);
+  Filename file = Filename::from_os_specific(_filename);
   file.resolve_filename(_header->get_model_path());
   return file;
 }

+ 1 - 1
pandatool/src/flt/fltTexture.cxx

@@ -97,7 +97,7 @@ FltTexture(FltHeader *header) : FltRecord(header) {
 ////////////////////////////////////////////////////////////////////
 Filename FltTexture::
 get_texture_filename() const {
-  Filename file(_filename);
+  Filename file = Filename::from_os_specific(_filename);
   file.resolve_filename(_header->get_texture_path());
   return file;
 }