Fix #110950: USD import: Crash calling import_asset().

Fixed logic error causing BLI_path_abs() to be called with
null basepath.

Pull Request: https://projects.blender.org/blender/blender/pulls/111119
This commit is contained in:
Michael Kowalski
2023-08-14 19:56:22 +02:00
committed by Michael Kowalski
parent e2a5846d56
commit 4e41acc0d3

View File

@@ -277,9 +277,9 @@ std::string import_asset(const char *src,
src);
return src;
}
BLI_path_abs(dest_dir_path, basepath);
}
BLI_path_abs(dest_dir_path, basepath);
BLI_path_normalize(dest_dir_path);
if (!BLI_dir_create_recursive(dest_dir_path)) {