file path fixes (again..), don't capture mouse during loading

This commit is contained in:
milek7
2018-03-28 21:49:15 +02:00
parent 8a33d5ce08
commit bf3b4bc30e
2 changed files with 6 additions and 6 deletions

View File

@@ -81,11 +81,7 @@ TModelsManager::GetModel(std::string const &Name, bool const Dynamic)
// - wczytanie modelu animowanego - Init() - sprawdzić
std::string const buftp { Global.asCurrentTexturePath }; // zapamiętanie aktualnej ścieżki do tekstur,
std::string filename { Name };
if (Name.find('\\') != std::string::npos)
{
ErrorLog("internal error: backslash in GetModel: " + Name);
}
if( Name.find( '/' ) != std::string::npos ) {
if( Name.find( '/' ) != std::string::npos && !Dynamic ) {
// pobieranie tekstur z katalogu, w którym jest model
Global.asCurrentTexturePath += Name;
Global.asCurrentTexturePath.erase( Global.asCurrentTexturePath.rfind( "/" ) + 1 );