|
|
@ -247,9 +247,13 @@ public class Structure implements Cloneable { |
|
|
|
* @return the name of the structure read from the ID field or null |
|
|
|
* @return the name of the structure read from the ID field or null |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getName() { |
|
|
|
public String getName() { |
|
|
|
Structure id = (Structure) this.getFieldValue("ID"); |
|
|
|
Object fieldValue = this.getFieldValue("ID"); |
|
|
|
|
|
|
|
if(fieldValue instanceof Structure) { |
|
|
|
|
|
|
|
Structure id = (Structure)fieldValue; |
|
|
|
return id == null ? null : id.getFieldValue("name").toString().substring(2);//blender adds 2-charactes as a name prefix
|
|
|
|
return id == null ? null : id.getFieldValue("name").toString().substring(2);//blender adds 2-charactes as a name prefix
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|