Cleanup: remove redundant null check
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user