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:
@@ -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('.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user