From 2d2dfbf490af4a42097bf8b2733df78dee8efb0a Mon Sep 17 00:00:00 2001 From: ousttrue Date: Sun, 2 Oct 2011 23:36:05 +0900 Subject: [PATCH] fix for python3 --- examples/mqobuilder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/mqobuilder.py b/examples/mqobuilder.py index abfc9c5..cc9ec7d 100644 --- a/examples/mqobuilder.py +++ b/examples/mqobuilder.py @@ -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: -- 2.11.0