mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-12 06:55:07 +00:00
Fix cooking new world/area data without an underscore in the name
This commit is contained in:
@@ -291,7 +291,7 @@ bool ReadMAPAToBlender(hecl::blender::Connection& conn, const MAPA& mapa, const
|
||||
/* World background */
|
||||
hecl::ProjectPath worldDir = outPath.getParentPath().getParentPath();
|
||||
for (const auto& ent : hecl::DirectoryEnumerator(worldDir.getAbsolutePath())) {
|
||||
if (hecl::StringUtils::BeginsWith(ent.m_name, _SYS_STR("!world_")) &&
|
||||
if (hecl::StringUtils::BeginsWith(ent.m_name, _SYS_STR("!world")) &&
|
||||
hecl::StringUtils::EndsWith(ent.m_name, _SYS_STR(".blend"))) {
|
||||
hecl::SystemUTF8Conv conv(ent.m_name);
|
||||
os.linkBackground(fmt::format(FMT_STRING("//../{}"), conv), "World"sv);
|
||||
|
||||
Reference in New Issue
Block a user