Cleanup: remove redundant null check
This commit is contained in:
parent
49dd5fae40
commit
3ad1a2eb62
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue