mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 04:27:42 +00:00
Update fmtlib
This commit is contained in:
@@ -7,7 +7,7 @@ namespace DataSpec::DNAMP1 {
|
||||
using ANIMOutStream = hecl::blender::ANIMOutStream;
|
||||
|
||||
void ANIM::IANIM::sendANIMToBlender(hecl::blender::PyOutStream& os, const DNAANIM::RigInverter<CINF>& rig) const {
|
||||
os.format(fmt(
|
||||
os.format(FMT_STRING(
|
||||
"act.hecl_fps = round({})\n"
|
||||
"act.hecl_looping = {}\n"),
|
||||
(1.0f / mainInterval), looping ? "True" : "False");
|
||||
@@ -26,7 +26,7 @@ void ANIM::IANIM::sendANIMToBlender(hecl::blender::PyOutStream& os, const DNAANI
|
||||
continue;
|
||||
}
|
||||
|
||||
os.format(fmt("bone_string = '{}'\n"), *bName);
|
||||
os.format(FMT_STRING("bone_string = '{}'\n"), *bName);
|
||||
os << "action_group = act.groups.new(bone_string)\n"
|
||||
"\n"
|
||||
"rotCurves = []\n"
|
||||
@@ -111,7 +111,7 @@ UniqueID32 ANIM::GetEVNTId(athena::io::IStreamReader& reader) {
|
||||
reader.seek(4);
|
||||
return reader.readUint32Big();
|
||||
default:
|
||||
Log.report(logvisor::Error, fmt("unrecognized ANIM version"));
|
||||
Log.report(logvisor::Error, FMT_STRING("unrecognized ANIM version"));
|
||||
break;
|
||||
}
|
||||
return {};
|
||||
@@ -134,7 +134,7 @@ void ANIM::Enumerate<BigDNA::Read>(typename Read::StreamT& reader) {
|
||||
m_anim->read(reader);
|
||||
break;
|
||||
default:
|
||||
Log.report(logvisor::Error, fmt("unrecognized ANIM version"));
|
||||
Log.report(logvisor::Error, FMT_STRING("unrecognized ANIM version"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -559,7 +559,7 @@ ANIM::ANIM(const BlenderAction& act, const std::unordered_map<std::string, atInt
|
||||
for (const BlenderAction::Channel& chan : act.channels) {
|
||||
auto search = idMap.find(chan.boneName);
|
||||
if (search == idMap.cend()) {
|
||||
Log.report(logvisor::Warning, fmt("unable to find id for bone '{}'"), chan.boneName);
|
||||
Log.report(logvisor::Warning, FMT_STRING("unable to find id for bone '{}'"), chan.boneName);
|
||||
continue;
|
||||
}
|
||||
if (addedBones.find(search->second) != addedBones.cend())
|
||||
|
||||
Reference in New Issue
Block a user