16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00
This commit is contained in:
VB
2017-03-05 22:34:10 +01:00
7 changed files with 104 additions and 65 deletions

View File

@@ -1639,8 +1639,7 @@ bool TModel3d::LoadFromFile(std::string const &FileName, bool dynamic)
// wczytanie modelu z pliku
std::string name = ToLower(FileName);
// trim extension if needed
if( ( name.rfind( '.' ) != std::string::npos )
&& ( name.substr( name.rfind( '.' ) ) == ".t3d" ) )
if( name.rfind( '.' ) != std::string::npos )
{
name.erase(name.rfind('.'));
}