Bugfix: fixed a crash that occured after changes in Materials'

definitions.
experimental
jmekaelthas 10 years ago
parent 550063367e
commit 30d89da190
  1. 2
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java

@ -134,13 +134,11 @@ public final class MaterialContext {
material.setBoolean("UseMaterialColors", Boolean.TRUE);
// setting the colors
material.setBoolean("Minnaert", diffuseShader == DiffuseShader.MINNAERT);
if (!transparent) {
diffuseColor.a = 1;
}
material.setColor("Diffuse", diffuseColor);
material.setBoolean("WardIso", specularShader == SpecularShader.WARDISO);
material.setColor("Specular", specularColor);
material.setFloat("Shininess", shininess);

Loading…
Cancel
Save