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,7 +514,12 @@ static void exportType(const EngineTypeInfo* type, SimXMLDocument* xml)
ConsoleBaseType *cbt = ConsoleBaseType::getType(property.getType());
if (cbt != NULL)
{
xml->setAttribute("type", cbt->getTypeClassName());
if (cbt->getTypeInfo() != NULL) {
xml->setAttribute("type", cbt->getTypeInfo()->getTypeName());
}
else {
xml->setAttribute("type", cbt->getTypeClassName());
}
}
else
{