From cb56fd88ebfb944b5ac76260995175e148cd2f21 Mon Sep 17 00:00:00 2001 From: Nehon Date: Wed, 9 Mar 2016 22:31:46 +0100 Subject: [PATCH] For some reason the J3MLoader never loads the material name. Not that it's really important, but since we have the name field... let's read it... --- .../src/plugins/java/com/jme3/material/plugins/J3MLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java b/jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java index d289b42c0..65350f29b 100644 --- a/jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java +++ b/jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java @@ -637,6 +637,7 @@ public class J3MLoader implements AssetLoader { material = new Material(def); material.setKey(key); + material.setName(split[0].trim()); // material.setAssetName(fileName); }else if (split.length == 1){ if (extending){