|
|
@ -450,6 +450,9 @@ public class MaterialLoader implements AssetLoader { |
|
|
|
} |
|
|
|
} |
|
|
|
String[] split = statement.getLine().split(" ", 2); |
|
|
|
String[] split = statement.getLine().split(" ", 2); |
|
|
|
matName = split[1].trim(); |
|
|
|
matName = split[1].trim(); |
|
|
|
|
|
|
|
if (matName.startsWith("\"") && matName.endsWith("\"")) { |
|
|
|
|
|
|
|
matName = matName.substring(1, matName.length() - 1); |
|
|
|
|
|
|
|
} |
|
|
|
readMaterial(statement); |
|
|
|
readMaterial(statement); |
|
|
|
Material mat = compileMaterial(); |
|
|
|
Material mat = compileMaterial(); |
|
|
|
list.put(matName, mat); |
|
|
|
list.put(matName, mat); |
|
|
@ -458,7 +461,7 @@ public class MaterialLoader implements AssetLoader { |
|
|
|
|
|
|
|
|
|
|
|
return list; |
|
|
|
return list; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Object load(AssetInfo info) throws IOException { |
|
|
|
public Object load(AssetInfo info) throws IOException { |
|
|
|
InputStream in = null; |
|
|
|
InputStream in = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|