* Added workaround to faulty blender2ogre exporter

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
sha..rd 2011-05-06 23:54:29 +00:00
parent 083333ac6e
commit a514158f22

View File

@ -79,7 +79,7 @@ public class MaterialLoader implements AssetLoader {
scan.useDelimiter("\\p{javaWhitespace}+");
return str.trim();
}
private ColorRGBA readColor(){
ColorRGBA color = new ColorRGBA();
color.r = scan.nextFloat();
@ -249,6 +249,10 @@ public class MaterialLoader implements AssetLoader {
}else if (keyword.equals("texture_unit")){
readTextureUnit();
}else if (keyword.equals("scene_blend")){
if (scan.hasNextInt()){
readString("\n"); // blender2ogre workaround
return;
}
String mode = scan.next();
if (mode.equals("alpha_blend")){
blend = true;