mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Apply gdt parent entry gdf to children
This commit is contained in:
parent
a42f75c85e
commit
41b4fb8c9a
@ -231,6 +231,10 @@ bool GdtReader::Read(Gdt& gdt)
|
|||||||
PrintError("Could not find parent with name");
|
PrintError("Could not find parent with name");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
auto* currentParentEntry = entry.m_parent;
|
||||||
|
while (currentParentEntry->m_parent)
|
||||||
|
currentParentEntry = currentParentEntry->m_parent;
|
||||||
|
entry.m_gdf_name = currentParentEntry->m_gdf_name;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user