2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

MREA generation fixes

This commit is contained in:
Jack Andersen
2016-08-13 09:37:03 -10:00
parent c89005f9c3
commit abcb9c2424
5 changed files with 32 additions and 13 deletions

View File

@@ -336,7 +336,7 @@ bool MREA::PCCook(const hecl::ProjectPath& outPath,
/* SCLY */
{
DNAMP1::SCLY sclyData;
DNAMP1::SCLY sclyData = {};
sclyData.fourCC = 'SCLY';
sclyData.version = 1;
for (const hecl::ProjectPath& layer : layerScriptPaths)
@@ -372,8 +372,8 @@ bool MREA::PCCook(const hecl::ProjectPath& outPath,
/* Collision */
{
DeafBabe collision;
{
DeafBabe collision = {};
DeafBabeBuildFromBlender(collision, cMesh);
secs.emplace_back(collision.binarySize(0), 0);
@@ -414,7 +414,7 @@ bool MREA::PCCook(const hecl::ProjectPath& outPath,
{
if (l.layer == lay)
{
BabeDeadLight light;
BabeDeadLight light = {};
WriteBabeDeadLightFromBlender(light, l);
light.write(w);
}