allow uppercase in generated textures specification

This commit is contained in:
milek7
2022-04-01 19:30:21 +02:00
parent fba7d98f2d
commit d0255f8871
2 changed files with 3 additions and 2 deletions

View File

@@ -278,8 +278,8 @@ TAnimModel::is_keyword( std::string const &Token ) const {
bool TAnimModel::Load(cParser *parser, bool ter)
{ // rozpoznanie wpisu modelu i ustawienie świateł
std::string name = ToLower(parser->getToken<std::string>());
std::string texture = ToLower(parser->getToken<std::string>());
std::string name = parser->getToken<std::string>();
std::string texture = parser->getToken<std::string>(false);
replace_slashes( name );
replace_slashes( texture );
if (!Init( name, texture ))

View File

@@ -1292,6 +1292,7 @@ texture_manager::create( std::string Filename, bool const Loadnow, GLint Formath
erase_extension( Filename );
// clean up slashes
erase_leading_slashes( Filename );
Filename = ToLower( Filename );
// temporary code for legacy assets -- textures with names beginning with # are to be sharpened
if( ( starts_with( Filename, "#" ) )
|| ( contains( Filename, "/#" ) ) ) {