* Add small work around in MTL loader: Do not accept "d 0" or "Tr 0" as they hide the model

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9723 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 12 years ago
parent 46fb4c43b4
commit e848c53ef4
  1. 7
      engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java

@ -219,8 +219,11 @@ public class MTLLoader implements AssetLoader {
} }
}else if (cmd.equals("d") || cmd.equals("tr")){ }else if (cmd.equals("d") || cmd.equals("tr")){
alpha = scan.nextFloat(); float tempAlpha = scan.nextFloat();
transparent = true; if (tempAlpha != 0){
alpha = tempAlpha;
transparent = true;
}
}else if (cmd.equals("map_ka")){ }else if (cmd.equals("map_ka")){
// ignore it for now // ignore it for now
return skipLine(); return skipLine();

Loading…
Cancel
Save