2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-01 00:31:56 +00:00

Fix XModelSurfs being entirely loaded in temp block by adding the feature to specify a block for a struct to be able to make xmodelsurfs being loaded in normal block

This commit is contained in:
Jan
2020-09-09 11:47:09 +02:00
parent bdbfb7114e
commit 9108add01d
4 changed files with 47 additions and 25 deletions

View File

@ -263,12 +263,15 @@ void $LoaderClassName(context.Asset)$::Load_$structure.Type.Name$(const bool atS
$else$
assert(atStreamStart);$\\$
$endif$
$if(structure.IsAsset)$
$if(structure.Block)$
m_stream->PushBlock($structure.Block.Name$);$\\$
$elseif(structure.IsAsset)$
m_stream->PushBlock($context.DefaultNormalBlock.Name$);$\\$
$endif$
$structure.OrderedMembers:{member | $LoadMemberIfNeedsTreatment(context, structure, member)$}$
$if(structure.IsAsset)$
$if(structure.Block || structure.IsAsset)$
m_stream->PopBlock();
$endif$