The main thread is not mutex blocked while child threads load anymore.
This commit is contained in:
@@ -9,7 +9,7 @@ Model::Model(std::string fileName)
|
||||
throw StillLoadingException();
|
||||
}
|
||||
|
||||
for (auto& group : m_RawModel->TextureGroups) {
|
||||
for (auto& group : m_RawModel->MaterialGroups) {
|
||||
if (!group.TexturePath.empty()) {
|
||||
group.Texture = std::shared_ptr<Texture>(ResourceManager::Load<Texture>(group.TexturePath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user