Shader source update

Shader is not updated when shader source is changed

because Shader.setUpdateNeeded() is not called.



[patch]

Index: src/core/com/jme3/shader/Shader.java

===================================================================

— src/core/com/jme3/shader/Shader.java (revision 6599)

+++ src/core/com/jme3/shader/Shader.java (working copy)

@@ -166,6 +166,12 @@

this.defines = defines;

setUpdateNeeded();

}

+

  •    @Override<br />
    
  •    public void setUpdateNeeded() {<br />
    
  •        super.setUpdateNeeded();<br />
    
  •        Shader.this.setUpdateNeeded();<br />
    
  •    }<br />
    

public String getSource(){
return source;

[/patch]