Cleanup: quiet dangling-reference GCC warning

This commit is contained in:
Campbell Barton
2024-09-15 23:14:06 +10:00
parent 0d9c4bc5b3
commit 1d21c98fc8

View File

@@ -1276,7 +1276,8 @@ static void create_usd_materialx_material(const USDExporterContext &usd_export_c
}
temp_used_names.add(target_name);
const std::string &original_path = temp_material_child.GetPath().GetString();
const pxr::SdfPath &temp_material_child_path = temp_material_child.GetPath();
const std::string &original_path = temp_material_child_path.GetString();
const std::string new_path =
temp_material_child.GetPath().ReplaceName(pxr::TfToken(target_name)).GetString();