- avoid null node names in obj importer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-02-07 22:15:55 +00:00
parent ef321a468c
commit 5e0fa6459c

View File

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