mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Improve type detection of EngineAPI types
This commit is contained in:
parent
a7f3724dd1
commit
f4c8e2683e
1 changed files with 6 additions and 1 deletions
|
|
@ -514,7 +514,12 @@ 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)
|
||||||
{
|
{
|
||||||
xml->setAttribute("type", cbt->getTypeClassName());
|
if (cbt->getTypeInfo() != NULL) {
|
||||||
|
xml->setAttribute("type", cbt->getTypeInfo()->getTypeName());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
xml->setAttribute("type", cbt->getTypeClassName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue