- avoid null node names in obj importer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent ef321a468c
commit 5e0fa6459c
  1. 4
      engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java

@ -139,7 +139,9 @@ public final class OBJLoader implements AssetLoader {
public Spatial createGeometry(){ public Spatial createGeometry(){
Node groupNode = new Node(objectName); Node groupNode = new Node(objectName);
if (objectName == null) {
groupNode.setName("Model");
}
// if (matFaces.size() > 0){ // if (matFaces.size() > 0){
// for (Entry<String, ArrayList<Face>> entry : matFaces.entrySet()){ // for (Entry<String, ArrayList<Face>> entry : matFaces.entrySet()){
// ArrayList<Face> materialFaces = entry.getValue(); // ArrayList<Face> materialFaces = entry.getValue();

Loading…
Cancel
Save