From b86b658c93c43b5262ed259692c9bf7491e8324a Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sat, 20 Aug 2011 14:10:18 +0000 Subject: [PATCH] Fixed material default value loading git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8045 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../core-plugins/com/jme3/material/plugins/J3MLoader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/core-plugins/com/jme3/material/plugins/J3MLoader.java b/engine/src/core-plugins/com/jme3/material/plugins/J3MLoader.java index 93ae9fe1f..1bd3b2b7f 100644 --- a/engine/src/core-plugins/com/jme3/material/plugins/J3MLoader.java +++ b/engine/src/core-plugins/com/jme3/material/plugins/J3MLoader.java @@ -180,7 +180,7 @@ public class J3MLoader implements AssetLoader { if (split.length != 1){ throw new IOException("Float value parameter must have 1 entry: " + value); } - return Float.parseFloat(split[0]); + return Float.parseFloat(split[0]); case Vector2: if (split.length != 2){ throw new IOException("Vector2 value parameter must have 2 entries: " + value); @@ -234,7 +234,7 @@ public class J3MLoader implements AssetLoader { throw new IOException("Parameter statement syntax incorrect"); } statement = split[0].trim(); - defaultVal = split[1].trim(); + defaultVal = split[1].trim(); } // Parse ffbinding @@ -269,7 +269,7 @@ public class J3MLoader implements AssetLoader { Object defaultValObj = null; if (defaultVal != null){ - readValue(type, defaultVal); + defaultValObj = readValue(type, defaultVal); } materialDef.addMaterialParam(type, name, defaultValObj, ffBinding);