mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Refactor for blender 2.8 and new shader model
This commit is contained in:
@@ -14,7 +14,7 @@ CToken ProjectResourcePool::GetObj(std::string_view name) {
|
||||
|
||||
hecl::ProjectPath path(*m_parent.project(), name);
|
||||
SObjectTag tag =
|
||||
static_cast<ProjectResourceFactoryBase&>(x18_factory).TagFromPath(path, hecl::blender::SharedBlenderToken);
|
||||
static_cast<ProjectResourceFactoryBase&>(x18_factory).TagFromPath(path);
|
||||
if (tag)
|
||||
return CSimplePool::GetObj(tag);
|
||||
|
||||
@@ -28,7 +28,7 @@ CToken ProjectResourcePool::GetObj(std::string_view name, const CVParamTransfer&
|
||||
|
||||
hecl::ProjectPath path(*m_parent.project(), name);
|
||||
SObjectTag tag =
|
||||
static_cast<ProjectResourceFactoryBase&>(x18_factory).TagFromPath(path, hecl::blender::SharedBlenderToken);
|
||||
static_cast<ProjectResourceFactoryBase&>(x18_factory).TagFromPath(path);
|
||||
if (tag)
|
||||
return CSimplePool::GetObj(tag, pvxfer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user