Fix to setting the normal texture if vertex coloring is enabled.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7612 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
+586
-596
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -217,7 +217,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
|||||||
throw new BlenderFileException("Unknown texture type: " + type + " for texture: " + tex.getName());
|
throw new BlenderFileException("Unknown texture type: " + type + " for texture: " + tex.getName());
|
||||||
}
|
}
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
result.setName(String.valueOf(type));
|
result.setName(tex.getName());
|
||||||
result.setWrap(WrapMode.Repeat);
|
result.setWrap(WrapMode.Repeat);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -1579,7 +1579,6 @@ public class TextureHelper extends AbstractBlenderHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
result.setName(String.valueOf(8));// 8 = TEX_IMAGE
|
|
||||||
result.setWrap(Texture.WrapMode.Repeat);
|
result.setWrap(Texture.WrapMode.Repeat);
|
||||||
dataRepository.addLoadedFeatures(image.getOldMemoryAddress(), image.getName(), image, result);
|
dataRepository.addLoadedFeatures(image.getOldMemoryAddress(), image.getName(), image, result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user