Browse Source

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

[Blender Exporter] support BasicMaterial
Mr.doob 9 years ago
parent
commit
e52062703b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      utils/exporters/blender/addons/io_three/exporter/api/material.py

+ 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]