From 5e0fa6459c9638114451409539482bbb1e06bc7b Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 7 Feb 2013 22:15:55 +0000 Subject: [PATCH] - avoid null node names in obj importer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java b/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java index 3d64dd3a5..4d57567c4 100644 --- a/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java +++ b/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java @@ -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> entry : matFaces.entrySet()){ // ArrayList materialFaces = entry.getValue();