mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
maintenance: string search methods
This commit is contained in:
@@ -456,8 +456,9 @@ material_manager::create( std::string const &Filename, bool const Loadnow ) {
|
||||
|
||||
auto filename { Filename };
|
||||
|
||||
if( filename.find( '|' ) != std::string::npos )
|
||||
if( contains( filename, '|' ) ) {
|
||||
filename.erase( filename.find( '|' ) ); // po | może być nazwa kolejnej tekstury
|
||||
}
|
||||
|
||||
// discern references to textures generated by a script
|
||||
// TBD: support file: for file resources?
|
||||
|
||||
Reference in New Issue
Block a user