mirror of https://github.com/AxioDL/metaforce.git
Add interface method for entering cook thread transactions
This commit is contained in:
parent
3aeb536d38
commit
907ed3d674
|
@ -99,6 +99,8 @@ public:
|
|||
std::vector<ExtractReport> childOpts;
|
||||
};
|
||||
|
||||
virtual void setThreadProject() {}
|
||||
|
||||
virtual bool canExtract(const ExtractPassInfo& info, std::vector<ExtractReport>& reps)
|
||||
{(void)info;(void)reps;LogModule.report(logvisor::Error, "not implemented");return false;}
|
||||
virtual void doExtract(const ExtractPassInfo& info, FProgress progress)
|
||||
|
|
|
@ -42,6 +42,7 @@ void ClientProcess::BufferTransaction::run(BlenderToken& btok)
|
|||
|
||||
void ClientProcess::CookTransaction::run(BlenderToken& btok)
|
||||
{
|
||||
m_dataSpec->setThreadProject();
|
||||
m_returnResult = m_parent.syncCook(m_path, m_dataSpec, btok);
|
||||
m_complete = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue