OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement pmdbuilder
[meshio/pymeshio.git]
/
blender25-meshio
/
pymeshio
/
mmd.py
diff --git
a/blender25-meshio/pymeshio/mmd.py
b/blender25-meshio/pymeshio/mmd.py
index
14600e3
..
7dc8f9b
100644
(file)
--- a/
blender25-meshio/pymeshio/mmd.py
+++ b/
blender25-meshio/pymeshio/mmd.py
@@
-69,6
+69,9
@@
if sys.version_info[0]<3:
else:
raise "INVALID str: %s" % t
else:
raise "INVALID str: %s" % t
+ def from_str(src):
+ return src
+
else:
def to_str(src):
t=type(src)
else:
def to_str(src):
t=type(src)
@@
-79,6
+82,9
@@
else:
else:
raise "INVALID str: %s" % t
else:
raise "INVALID str: %s" % t
+ def from_str(src):
+ return src.encode('cp932')
+
def radian_to_degree(x):
return x/math.pi * 180.0
def radian_to_degree(x):
return x/math.pi * 180.0