2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 08:19:11 +00:00

Mesh cooker updates

This commit is contained in:
Jack Andersen
2015-10-06 15:16:54 -10:00
parent f0325f7946
commit 135a7ced5d
10 changed files with 215 additions and 106 deletions

View File

@@ -469,10 +469,10 @@ public:
/**
* @brief Make absolute path project relative
* @param absPath
* @return
* @param absPath Absolute path
* @return SystemString of path relative to project root
*/
const SystemString getProjectRelativeFromAbsolute(const SystemString& absPath) const
SystemString getProjectRelativeFromAbsolute(const SystemString& absPath) const
{
if (absPath.size() > m_projRoot.size())
{
@@ -780,6 +780,18 @@ public:
relTarget += target.m_relPath;
MakeLink(relTarget.c_str(), m_absPath.c_str());
}
/**
* @brief Fetch project that contains path
* @return Project
*/
Database::Project& getProject() const
{
if (!m_proj)
LogModule.report(LogVisor::FatalError, "ProjectPath::getProject() called on unqualified path");
return *m_proj;
}
/**
* @brief HECL-specific xxhash
* @return unique hash value