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:
@ -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$
|
||||
|
Reference in New Issue
Block a user