mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
allow embedded textures
This commit is contained in:
parent
6f711392aa
commit
d5620f2671
@ -209,7 +209,11 @@ class AppPacker:
|
|||||||
# them their new location within the multifile.
|
# them their new location within the multifile.
|
||||||
|
|
||||||
for tex in NodePath(node).findAllTextures():
|
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():
|
if tex.hasAlphaFilename():
|
||||||
tex.setAlphaFilename(self.addTexture(tex.getAlphaFullpath()))
|
tex.setAlphaFilename(self.addTexture(tex.getAlphaFullpath()))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user