From bbaf33e4ded208cdff084e72027396d7ac4e2b90 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 5 Apr 2016 15:43:16 -1000 Subject: [PATCH] Add ProjectPath::ensureAuxInfo --- hecl/blender/BlenderConnection.hpp | 6 ++---- hecl/include/hecl/hecl.hpp | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hecl/blender/BlenderConnection.hpp b/hecl/blender/BlenderConnection.hpp index 6877290af..ad854b714 100644 --- a/hecl/blender/BlenderConnection.hpp +++ b/hecl/blender/BlenderConnection.hpp @@ -730,10 +730,8 @@ private: m_iboSz(iboData.size()*4), m_iboData(new uint8_t[iboData.size()*4]), m_surfaces(std::move(surfaces)), m_skinBanks(skinBanks) { - { - athena::io::MemoryWriter w(m_iboData.get(), m_iboSz); - w.enumerateLittle(iboData); - } + athena::io::MemoryWriter w(m_iboData.get(), m_iboSz); + w.enumerateLittle(iboData); } public: HMDLMeta m_meta; diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index ad81ee868..8e9541880 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -1064,6 +1064,15 @@ public: #endif } + /** + * @brief Construct a path with the aux info overwritten with specified string + * @param auxStr string to replace existing auxInfo with + */ + hecl::ProjectPath ensureAuxInfo(const SystemChar* auxStr) const + { + return hecl::ProjectPath(getProject(), getRelativePath() + _S('|') + auxStr); + } + /** * @brief Type of path */