[ImenuDef_t] ItemFloatExpressions are now functional
This commit is contained in:
parent
451dc77d1c
commit
5e9e7e630d
@ -486,9 +486,23 @@ namespace Assets
|
|||||||
dest->typeData.data = nullptr;
|
dest->typeData.data = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// floatExpressions (fix me)
|
// floatExpressions
|
||||||
dest->floatExpressions = nullptr;
|
if (asset->floatExpressions)
|
||||||
dest->floatExpressionCount = 0;
|
{
|
||||||
|
buffer->align(Utils::Stream::ALIGN_4);
|
||||||
|
|
||||||
|
Game::ItemFloatExpression* destExp = buffer->dest<Game::ItemFloatExpression>();
|
||||||
|
buffer->saveArray(asset->floatExpressions, asset->floatExpressionCount);
|
||||||
|
|
||||||
|
for (int i = 0; i < asset->floatExpressionCount; i++)
|
||||||
|
{
|
||||||
|
buffer->align(Utils::Stream::ALIGN_4);
|
||||||
|
save_Statement_s(asset->floatExpressions[i].expression, builder);
|
||||||
|
Utils::Stream::ClearPointer(&destExp->expression);
|
||||||
|
}
|
||||||
|
|
||||||
|
Utils::Stream::ClearPointer(&dest->floatExpressions);
|
||||||
|
}
|
||||||
|
|
||||||
// Statements
|
// Statements
|
||||||
STATEMENT(visibleExp);
|
STATEMENT(visibleExp);
|
||||||
|
Loading…
Reference in New Issue
Block a user