From c34fcce7a20981ad48c6a3fd093a6c3cef2c475b Mon Sep 17 00:00:00 2001 From: shadowislord Date: Wed, 18 Mar 2015 23:13:09 -0400 Subject: [PATCH] MatParamTexture: remove useless constructor --- .../src/main/java/com/jme3/material/MatParamTexture.java | 6 ------ jme3-core/src/main/java/com/jme3/material/Material.java | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/material/MatParamTexture.java b/jme3-core/src/main/java/com/jme3/material/MatParamTexture.java index b24d27a95..a3db63a1c 100644 --- a/jme3-core/src/main/java/com/jme3/material/MatParamTexture.java +++ b/jme3-core/src/main/java/com/jme3/material/MatParamTexture.java @@ -47,12 +47,6 @@ public class MatParamTexture extends MatParam { private int unit; private ColorSpace colorSpace; - public MatParamTexture(VarType type, String name, Texture texture, int unit) { - super(type, name, texture); - this.texture = texture; - this.unit = unit; - } - public MatParamTexture(VarType type, String name, Texture texture, int unit, ColorSpace colorSpace) { super(type, name, texture); this.texture = texture; diff --git a/jme3-core/src/main/java/com/jme3/material/Material.java b/jme3-core/src/main/java/com/jme3/material/Material.java index 74fdbb006..5f0ab8f91 100644 --- a/jme3-core/src/main/java/com/jme3/material/Material.java +++ b/jme3-core/src/main/java/com/jme3/material/Material.java @@ -556,7 +556,7 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { + "Linear using texture.getImage.setColorSpace().", new Object[]{value.getName(), value.getImage().getColorSpace().name(), name}); } - paramValues.put(name, new MatParamTexture(type, name, value, nextTexUnit++)); + paramValues.put(name, new MatParamTexture(type, name, value, nextTexUnit++, null)); } else { val.setTextureValue(value); }