Merge branch 'master' of github:jMonkeyEngine/jmonkeyengine

This commit is contained in:
shadowislord 2014-06-06 16:51:47 -04:00
commit 648477e8c2

View File

@ -53,9 +53,13 @@ public class MaterialUtils {
* @param line
* @return
*/
public static String trimName(String line) {
public static String trimName(String line) {
int idx = line.indexOf("-");
if(idx!=-1){
line= line.substring(0, idx);
}
line = trimLine(line);
int idx = line.indexOf("(");
idx = line.indexOf("(");
if (idx == -1) {
idx = line.indexOf(":");
}