mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-12 14:59:07 +00:00
MREA bug fixes
This commit is contained in:
parent
850fcd2747
commit
273a21a7f1
@ -97,7 +97,7 @@ void FinishBlenderMesh(HECL::BlenderConnection::PyOutStream& os,
|
|||||||
"bpy.context.scene.objects.link(obj)\n"
|
"bpy.context.scene.objects.link(obj)\n"
|
||||||
"mesh.hecl_material_count = %u\n", matSetCount);
|
"mesh.hecl_material_count = %u\n", matSetCount);
|
||||||
else
|
else
|
||||||
os.format("mesh = bpy.data.meshes.new(bpy.context.scene.name + '_%3d')\n"
|
os.format("mesh = bpy.data.meshes.new(bpy.context.scene.name + '_%03d')\n"
|
||||||
"obj = bpy.data.objects.new(mesh.name, mesh)\n"
|
"obj = bpy.data.objects.new(mesh.name, mesh)\n"
|
||||||
"obj.show_transparent = True\n"
|
"obj.show_transparent = True\n"
|
||||||
"bpy.context.scene.objects.link(obj)\n"
|
"bpy.context.scene.objects.link(obj)\n"
|
||||||
|
@ -219,7 +219,7 @@ ResExtractor<PAKBridge> PAKBridge::LookupExtractor(const PAK::Entry& entry)
|
|||||||
case SBIG('ANCS'):
|
case SBIG('ANCS'):
|
||||||
return {nullptr, ANCS::Extract, {_S(".yaml"), _S(".blend")}, 2};
|
return {nullptr, ANCS::Extract, {_S(".yaml"), _S(".blend")}, 2};
|
||||||
case SBIG('MREA'):
|
case SBIG('MREA'):
|
||||||
return {nullptr, MREA::Extract, {_S(".yaml"), _S(".blend")}, 3};
|
return {nullptr, MREA::Extract, {_S(".blend")}, 3};
|
||||||
case SBIG('MLVL'):
|
case SBIG('MLVL'):
|
||||||
return {MLVL::Extract, nullptr, {_S(".yaml")}};
|
return {MLVL::Extract, nullptr, {_S(".yaml")}};
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ bool MREA::Extract(const SpecBase& dataSpec,
|
|||||||
rs.seekAlign32();
|
rs.seekAlign32();
|
||||||
|
|
||||||
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
||||||
if (!conn.createBlend(outPath.getWithExtension(_S(".blend")).getAbsolutePath()))
|
if (!conn.createBlend(outPath.getAbsolutePath()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* Open Py Stream and read sections */
|
/* Open Py Stream and read sections */
|
||||||
|
@ -226,7 +226,7 @@ ResExtractor<PAKBridge> PAKBridge::LookupExtractor(const DNAMP1::PAK::Entry& ent
|
|||||||
case SBIG('ANCS'):
|
case SBIG('ANCS'):
|
||||||
return {nullptr, ANCS::Extract, {_S(".yaml"), _S(".blend")}, 2};
|
return {nullptr, ANCS::Extract, {_S(".yaml"), _S(".blend")}, 2};
|
||||||
case SBIG('MREA'):
|
case SBIG('MREA'):
|
||||||
return {nullptr, MREA::Extract, {_S(".yaml"), _S(".blend")}, 3};
|
return {nullptr, MREA::Extract, {_S(".blend")}, 3};
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ bool MREA::Extract(const SpecBase& dataSpec,
|
|||||||
|
|
||||||
/* Start up blender connection */
|
/* Start up blender connection */
|
||||||
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
||||||
if (!conn.createBlend(outPath.getWithExtension(_S(".blend")).getAbsolutePath()))
|
if (!conn.createBlend(outPath.getAbsolutePath()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* Open Py Stream and read sections */
|
/* Open Py Stream and read sections */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user