* Added workaround to faulty blender2ogre exporter

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 083333ac6e
commit a514158f22
  1. 6
      engine/src/ogre/com/jme3/scene/plugins/ogre/MaterialLoader.java

@ -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;

Loading…
Cancel
Save