Explorar el Código

Merge pull request #7635 from yomotsu/blender-basic-material

[Blender Exporter] support BasicMaterial
Mr.doob hace 9 años
padre
commit
e52062703b

+ 3 - 0
utils/exporters/blender/addons/io_three/exporter/api/material.py

@@ -243,6 +243,9 @@ def shading(material):
         False: constants.LAMBERT
     }
 
+    if material.use_shadeless:
+        return constants.BASIC
+
     return dispatch[material.specular_intensity > 0.0]