2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Multi-intermediate MLVL path; simpler metadata yaml

This commit is contained in:
Jack Andersen
2016-09-30 16:57:09 -10:00
parent 5df7c188b0
commit 2dad2e2051
8 changed files with 49 additions and 7 deletions

View File

@@ -17,11 +17,12 @@ bool ReadMLVLToBlender(hecl::BlenderConnection& conn,
bool force,
std::function<void(const hecl::SystemChar*)> fileChanged)
{
if (!force && outPath.isFile())
hecl::ProjectPath blendPath = outPath.getWithExtension(_S(".blend"), true);
if (!force && blendPath.isFile())
return true;
/* Create World Blend */
if (!conn.createBlend(outPath, hecl::BlenderConnection::BlendType::World))
if (!conn.createBlend(blendPath, hecl::BlenderConnection::BlendType::World))
return false;
hecl::BlenderConnection::PyOutStream os = conn.beginPythonOut(true);
os.format("import bpy\n"