mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Keep original paths for areas, worlds, and maps when not in a world pak
This commit is contained in:
@@ -92,8 +92,14 @@ bool ReadMAPAToBlender(hecl::BlenderConnection& conn,
|
||||
const typename PAKRouter::EntryType& entry,
|
||||
bool force)
|
||||
{
|
||||
/* Rename MAPA for consistency */
|
||||
hecl::ProjectPath mapaPath(outPath.getParentPath(), _S("!map.blend"));
|
||||
hecl::ProjectPath mapaPath;
|
||||
if (pakRouter.isShared())
|
||||
/* Rename MAPA for consistency */
|
||||
mapaPath = hecl::ProjectPath(outPath.getParentPath(), _S("!map.blend"));
|
||||
else
|
||||
/* We're not in a world pak, so lets keep the original name */
|
||||
mapaPath = outPath;
|
||||
|
||||
if (!force && mapaPath.getPathType() == hecl::ProjectPath::Type::File)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user