X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=blender25-meshio%2Fpymeshio%2Fmmd.py;h=7dc8f9b673a7fa33e4dab2fb821ed33bbecd80f5;hb=65211f29fc6e1e540cc3e1c515753f860653382b;hp=14600e304ecf9f67c54ed7e19c6b73ea6564b8da;hpb=9ecd3b1f3c3667fea76fcf98848d069e0a9fd59b;p=meshio%2Fpymeshio.git diff --git a/blender25-meshio/pymeshio/mmd.py b/blender25-meshio/pymeshio/mmd.py index 14600e3..7dc8f9b 100644 --- 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 + def from_str(src): + return src + else: def to_str(src): t=type(src) @@ -79,6 +82,9 @@ else: 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