OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed3a0b
)
fix texture_export
author
ousttrue
<ousttrue@gmail.com>
Sun, 29 May 2011 04:03:34 +0000
(13:03 +0900)
committer
ousttrue
<ousttrue@gmail.com>
Sun, 29 May 2011 04:03:34 +0000
(13:03 +0900)
blender25-meshio/export_pmd.py
patch
|
blob
|
history
diff --git
a/blender25-meshio/export_pmd.py
b/blender25-meshio/export_pmd.py
index
bb44328
..
a9fea63
100644
(file)
--- a/
blender25-meshio/export_pmd.py
+++ b/
blender25-meshio/export_pmd.py
@@
-925,8
+925,15
@@
class PmdExporter(object):
material.vertex_count=len(indices)
material.toon_index=0
- textures=[os.path.basename(path)
+ def get_texture_name(texture):
+ pos=texture.replace("\\", "/").rfind("/")
+ if pos==-1:
+ return texture
+ else:
+ return texture[pos+1:]
+ textures=[get_texture_name(path)
for path in bl.material.eachEnalbeTexturePath(m)]
+ print(textures)
if len(textures)>0:
material.texture='*'.join(textures)
else: