Browse Source

Merge pull request #7448 from truerenton/maya_exporter_fix

update support properties
Mr.doob 9 years ago
parent
commit
a797522e4e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      utils/exporters/maya/plug-ins/threeJsFileTranslator.py

+ 1 - 2
utils/exporters/maya/plug-ins/threeJsFileTranslator.py

@@ -233,11 +233,10 @@ class ThreeJsWriter(object):
             "DbgName": mat.name(),
             "blending": "NormalBlending",
             "colorDiffuse": map(lambda i: i * mat.getDiffuseCoeff(), mat.getColor().rgb),
-            "colorAmbient": mat.getAmbientColor().rgb,
             "depthTest": True,
             "depthWrite": True,
             "shading": mat.__class__.__name__,
-            "transparency": mat.getTransparency().a,
+            "opacity": mat.getTransparency().a,
             "transparent": mat.getTransparency().a != 1.0,
             "vertexColors": False
         }