Made the Material Editor properly handle the new -LINEAR statement of j3md when parsing material parameters
This commit is contained in:
parent
ffb9e287bd
commit
46f0f32afa
@ -54,8 +54,12 @@ public class MaterialUtils {
|
|||||||
* @return
|
* @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);
|
line = trimLine(line);
|
||||||
int idx = line.indexOf("(");
|
idx = line.indexOf("(");
|
||||||
if (idx == -1) {
|
if (idx == -1) {
|
||||||
idx = line.indexOf(":");
|
idx = line.indexOf(":");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user