Cleanup: remove redundant null check

This commit is contained in:
Campbell Barton 2024-03-28 13:01:34 +11:00
parent 49dd5fae40
commit 3ad1a2eb62
1 changed files with 2 additions and 5 deletions

View File

@ -286,12 +286,9 @@ std::string import_asset(const char *src,
char dest_dir_path[FILE_MAXDIR];
STRNCPY(dest_dir_path, import_dir);
const char *basepath = nullptr;
if (BLI_path_is_rel(import_dir)) {
basepath = BKE_main_blendfile_path_from_global();
if (!basepath || basepath[0] == '\0') {
const char *basepath = BKE_main_blendfile_path_from_global();
if (basepath[0] == '\0') {
BKE_reportf(reports,
RPT_ERROR,
"%s: import directory is relative "