X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=examples%2Fpmdbuilder.py;h=846c7b2871aa74374c688dd5af8f2bc7d8e805c4;hb=a678c04bd9942eb915a1d07caac747ef5d0f8556;hp=c758e3435625385bfe6ed516835b802006735227;hpb=dee0cd0168789cdeb0cf8d360b52a4ce24464f55;p=meshio%2Fpymeshio.git diff --git a/examples/pmdbuilder.py b/examples/pmdbuilder.py index c758e34..846c7b2 100644 --- a/examples/pmdbuilder.py +++ b/examples/pmdbuilder.py @@ -16,7 +16,6 @@ def build(path): if not io.read(path): return print(time.time()-t, "sec") - print(io) # build basedir=os.path.dirname(path) indexedVertexArray=opengl.vertexarray.IndexedVertexArray() @@ -37,7 +36,6 @@ def build(path): yield i indexGen=indices() for i, m in enumerate(io.materials): - print(i, m) material=opengl.material.MQOMaterial() material.vcol=True material.rgba=( @@ -46,8 +44,8 @@ def build(path): m.diffuse[2], m.diffuse[3]) texturefile=m.texture.decode('cp932') - if texturefile!="": - texturepath=os.path.join(basedir, texturefile) + texturepath=os.path.join(basedir, texturefile) + if os.path.isfile(texturepath): if not texturepath in textureMap: texture=opengl.texture.Texture(texturepath) textureMap[texturepath]=texture