X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=examples%2Fmqobuilder.py;h=cc20b664024a2d179204560fe87e0868d1f56692;hb=924bae1667aea0f57dd3de11b1248c12bc9a95d1;hp=abfc9c5c214ce41933086295865acfeddc41f39a;hpb=9605a347880a8ad2809383c6851661550fc23c6b;p=meshio%2Fpymeshio.git diff --git a/examples/mqobuilder.py b/examples/mqobuilder.py index abfc9c5..cc20b66 100644 --- a/examples/mqobuilder.py +++ b/examples/mqobuilder.py @@ -3,7 +3,7 @@ import time import os -import pymeshio.mqo +import pymeshio.mqo.reader import opengl.material import opengl.texture import opengl.vertexarraymap @@ -22,17 +22,17 @@ def build(path): material=opengl.material.MQOMaterial() material.rgba=(m.color.r, m.color.g, m.color.b, m.color.a) if m.tex: - texturepath=os.path.join(basedir, m.tex) + texturepath=os.path.join(basedir, m.tex.decode('cp932')) material.texture=opengl.texture.Texture(texturepath) vertexArrayMap.addMaterial(material) for o in model.objects: # skip mikoto objects - if o.name.startswith("anchor"): + if o.name.startswith(b"anchor"): continue - if o.name.startswith("bone:"): + if o.name.startswith(b"bone:"): continue - if o.name.startswith("MCS:"): + if o.name.startswith(b"MCS:"): continue for f in o.faces: