From 2f06c9b37b37a262d094c01adee1f3f3d6cf3173 Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 1 Jun 2017 21:02:59 +0200 Subject: [PATCH] ShaderNodeDefinition path is now set while loading the definition. --- .../com/jme3/material/plugins/ShaderNodeLoaderDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java b/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java index 9c6fb7c31..f9efd8fdc 100644 --- a/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java +++ b/jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java @@ -193,6 +193,7 @@ public class ShaderNodeLoaderDelegate { shaderNodeDefinition = new ShaderNodeDefinition(); getNodeDefinitions().put(name, shaderNodeDefinition); shaderNodeDefinition.setName(name); + shaderNodeDefinition.setPath(key.getName()); readShaderNodeDefinition(statement.getContents(), key); } @@ -942,7 +943,6 @@ public class ShaderNodeLoaderDelegate { } for (ShaderNodeDefinition definition : defs) { - definition.setPath(defLine[2].trim()); if (defName.equals(definition.getName())) { def = definition; }