Improve type detection of EngineAPI types

This commit is contained in:
Lukas Aldershaab 2020-10-04 03:00:26 +02:00
parent a7f3724dd1
commit f4c8e2683e

View file

@ -514,8 +514,13 @@ static void exportType(const EngineTypeInfo* type, SimXMLDocument* xml)
ConsoleBaseType *cbt = ConsoleBaseType::getType(property.getType()); ConsoleBaseType *cbt = ConsoleBaseType::getType(property.getType());
if (cbt != NULL) if (cbt != NULL)
{ {
if (cbt->getTypeInfo() != NULL) {
xml->setAttribute("type", cbt->getTypeInfo()->getTypeName());
}
else {
xml->setAttribute("type", cbt->getTypeClassName()); xml->setAttribute("type", cbt->getTypeClassName());
} }
}
else else
{ {
xml->setAttribute("type", "unknown"); xml->setAttribute("type", "unknown");