@Override
    public void setMaterial(Material material) {
        this.material = material;
        nbSimultaneousGPUMorph = -1;
        if (isGrouped()) {
            groupNode.onMaterialChange(this);
        }
    }
Sets the material to use for this geometry.

@param material the material to use for this geometry
jme3-core/src/main/java/com/jme3/scene/Geometry.java