mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Fix correctActorModelPath in preloader not being used
This commit is contained in:
parent
1b8e82e929
commit
d16450bff2
@ -86,8 +86,8 @@ namespace MWWorld
|
|||||||
|
|
||||||
//std::cout << "preloading " << mesh << std::endl;
|
//std::cout << "preloading " << mesh << std::endl;
|
||||||
|
|
||||||
mPreloadedNodes.push_back(mSceneManager->getTemplate(*it));
|
mPreloadedNodes.push_back(mSceneManager->getTemplate(mesh));
|
||||||
mPreloadedShapes.push_back(mBulletShapeManager->getShape(*it));
|
mPreloadedShapes.push_back(mBulletShapeManager->getShape(mesh));
|
||||||
|
|
||||||
size_t slashpos = mesh.find_last_of("/\\");
|
size_t slashpos = mesh.find_last_of("/\\");
|
||||||
if (slashpos != std::string::npos && slashpos != mesh.size()-1)
|
if (slashpos != std::string::npos && slashpos != mesh.size()-1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user