16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00

copydata communication fix, update loop tweaks

This commit is contained in:
tmj-fstate
2017-03-04 13:24:34 +01:00
parent 0e3b414f8f
commit 39b8fbfb86
8 changed files with 97 additions and 64 deletions

View File

@@ -1812,8 +1812,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('.'));
}