MatParamTexture: remove useless constructor
This commit is contained in:
parent
6d7da0cc4e
commit
c34fcce7a2
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user