소스 검색

MatParamTexture: remove useless constructor

shadowislord 10 년 전
부모
커밋
c34fcce7a2
2개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 6
      jme3-core/src/main/java/com/jme3/material/MatParamTexture.java
  2. 1 1
      jme3-core/src/main/java/com/jme3/material/Material.java

+ 0 - 6
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;

+ 1 - 1
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);
         }