Cleanup: avoid redundant copy to access the filename
This commit is contained in:
@@ -503,9 +503,7 @@ bool BKE_volume_load(const Volume *volume, const Main *bmain)
|
||||
|
||||
/* Test if file exists. */
|
||||
if (!BLI_exists(filepath)) {
|
||||
char filename[FILE_MAX];
|
||||
BLI_path_split_file_part(filepath, filename, sizeof(filename));
|
||||
grids.error_msg = filename + std::string(" not found");
|
||||
grids.error_msg = BLI_path_basename(filepath) + std::string(" not found");
|
||||
CLOG_INFO(&LOG, 1, "Volume %s: %s", volume_name, grids.error_msg.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user