Browse Source

allow embedded textures

David Rose 16 years ago
parent
commit
d5620f2671
1 changed files with 5 additions and 1 deletions
  1. 5 1
      direct/src/showbase/MakeAppMF.py

+ 5 - 1
direct/src/showbase/MakeAppMF.py

@@ -209,7 +209,11 @@ class AppPacker:
         # them their new location within the multifile.
         
         for tex in NodePath(node).findAllTextures():
-            tex.setFilename(self.addTexture(tex.getFullpath()))
+            if not tex.hasFullpath():
+                continue
+            
+            if tex.hasFilename():
+                tex.setFilename(self.addTexture(tex.getFullpath()))
             if tex.hasAlphaFilename():
                 tex.setAlphaFilename(self.addTexture(tex.getAlphaFullpath()))