Bladeren bron

*** empty log message ***

David Rose 25 jaren geleden
bovenliggende
commit
8943a2bce4
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 1 0
      direct/src/showbase/showBase.cxx
  2. 4 0
      pandatool/src/egg-palettize/filenameUnifier.cxx

+ 1 - 0
direct/src/showbase/showBase.cxx

@@ -36,6 +36,7 @@
 #include <appTraverser.h>
 #include <collisionTraverser.h>
 #include <get_config_path.h>
+#include <allAttributesWrapper.h>
 
 ConfigureDef(config_showbase);
 ConfigureFn(config_showbase) {

+ 4 - 0
pandatool/src/egg-palettize/filenameUnifier.cxx

@@ -121,6 +121,9 @@ make_user_filename(Filename filename) {
 //               caches the operation so that repeated calls to
 //               filenames in the same directory will tend to be
 //               faster.
+//
+//               Also guarantees that the directory containing the
+//               filename exists by making it if it does not.
 ////////////////////////////////////////////////////////////////////
 void FilenameUnifier::
 make_canonical(Filename &filename) {
@@ -137,6 +140,7 @@ make_canonical(Filename &filename) {
     return;
   }
 
+  filename.make_dir();
   filename.make_canonical();
   _canonical_filenames.insert(CanonicalFilenames::value_type(dirname, filename.get_dirname()));
 }