mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
Keep original paths for areas, worlds, and maps when not in a world pak
This commit is contained in:
@@ -17,8 +17,13 @@ bool ReadMLVLToBlender(hecl::BlenderConnection& conn,
|
||||
bool force,
|
||||
std::function<void(const hecl::SystemChar*)> fileChanged)
|
||||
{
|
||||
/* Rename MLVL for consistency */
|
||||
hecl::ProjectPath mlvlPath(outPath.getParentPath(), _S("!world.blend"));
|
||||
hecl::ProjectPath mlvlPath;
|
||||
if (pakRouter.isShared())
|
||||
/* Rename MLVL for consistency */
|
||||
mlvlPath = hecl::ProjectPath(outPath.getParentPath(), _S("!world.blend"));
|
||||
else
|
||||
/* We're not in a world pak, so lets keep the original name */
|
||||
mlvlPath = outPath;
|
||||
if (!force && mlvlPath.getPathType() == hecl::ProjectPath::Type::File)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user