OSDN Git Service

fix toon_index
authorousttrue <ousttrue@gmail.com>
Tue, 7 Jun 2011 11:41:37 +0000 (20:41 +0900)
committerousttrue <ousttrue@gmail.com>
Tue, 7 Jun 2011 11:42:18 +0000 (20:42 +0900)
blender25-meshio/export_pmd.py

index 3b683c8..0b6490c 100644 (file)
@@ -117,7 +117,7 @@ def setMaterialParams(material, m):
     # flag
     material.flag=1 if m.subsurface_scattering.use else 0
     # toon
-    material.toon_index=7
+    material.toon_index=0
 
 def toCP932(s):
     return s.encode('cp932')
@@ -958,7 +958,6 @@ class PmdExporter(object):
             setMaterialParams(material, m)
 
             material.vertex_count=len(indices)
-            material.toon_index=0
             def get_texture_name(texture):
                 pos=texture.replace("\\", "/").rfind("/")
                 if pos==-1: