Fix linux/mac compiler warning.

This commit is contained in:
Michael Kowalski 2023-01-26 20:16:07 -05:00
parent 647cffc001
commit e735bf02cb
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ void USDStageReader::fake_users_for_unused_materials()
{
/* Iterate over the imported materials and set a fake user for any unused
* materials. */
for (const std::pair<std::string, std::string> &path_mat_pair : settings_.usd_path_to_mat_name) {
for (const std::pair<const std::string, std::string> &path_mat_pair : settings_.usd_path_to_mat_name) {
std::map<std::string, Material *>::iterator mat_it = settings_.mat_name_to_mat.find(
path_mat_pair.second);