minor bug fixes

This commit is contained in:
tmj-fstate
2020-06-29 15:32:09 +02:00
parent 065c490bea
commit d942d43f63
3 changed files with 11 additions and 9 deletions

View File

@@ -483,7 +483,7 @@ material_manager::create( std::string const &Filename, bool const Loadnow ) {
erase_leading_slashes( filename );
}
auto const databanklookup { find_in_databank( ToLower( filename ) ) };
auto const databanklookup { find_in_databank( filename ) };
if( databanklookup != null_handle ) {
return databanklookup;
}
@@ -528,7 +528,7 @@ material_manager::create( std::string const &Filename, bool const Loadnow ) {
*/
// HACK: create parse info for material finalize() method
cParser materialparser(
"texture1: " + Filename,
"texture1: \"" + Filename + "\"",
cParser::buffer_TEXT );
material.deserialize( materialparser, Loadnow );
}