- 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:
parent
ef321a468c
commit
5e0fa6459c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user