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
(from parent 1:
b8a82fe
)
fix normal
author
ousttrue
<ousttrue@gmail.com>
Tue, 7 Jun 2011 11:42:26 +0000
(20:42 +0900)
committer
ousttrue
<ousttrue@gmail.com>
Tue, 7 Jun 2011 11:42:26 +0000
(20:42 +0900)
blender25-meshio/export_pmd.py
patch
|
blob
|
history
diff --git
a/blender25-meshio/export_pmd.py
b/blender25-meshio/export_pmd.py
index
0b6490c
..
6d31f67
100644
(file)
--- a/
blender25-meshio/export_pmd.py
+++ b/
blender25-meshio/export_pmd.py
@@
-935,9
+935,10
@@
class PmdExporter(object):
v.pos.x=pos[0]
v.pos.y=pos[2]
v.pos.z=pos[1]
+ # convert right-handed z-up to left-handed y-up
v.normal.x=attribute.nx
- v.normal.y=attribute.n
y
- v.normal.z=attribute.n
z
+ v.normal.y=attribute.n
z
+ v.normal.z=attribute.n
y
v.uv.x=attribute.u
v.uv.y=1.0-attribute.v # reverse vertical
v.bone0=self.skeleton.indexByName(b0)