Fixed an issue with shaderNodes loading

cleanup_build_scripts
Nehon 9 years ago
parent 8d4962d11f
commit c859cf375c
  1. 4
      jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java

@ -621,9 +621,7 @@ public class J3MLoader implements AssetLoader {
// Not sure if this is needed anymore, since shader caching
// is now done by TechniqueDef.
technique.setShaderFile(technique.hashCode() + "", technique.hashCode() + "", "GLSL100", "GLSL100");
}
if (shaderNames.containsKey(Shader.ShaderType.Vertex) && shaderNames.containsKey(Shader.ShaderType.Fragment)) {
}else if (shaderNames.containsKey(Shader.ShaderType.Vertex) && shaderNames.containsKey(Shader.ShaderType.Fragment)) {
technique.setShaderFile(shaderNames, shaderLanguages);
} else {
technique = null;

Loading…
Cancel
Save