diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-08-02 18:03:25 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-08-02 18:03:33 +0300 |
commit | 09ac5f97a7ef0381618f1e144795659b285da130 (patch) | |
tree | 3c40fecefba8cc4937acfe2d4e98405198835edf /source/blender/io | |
parent | dadfdc822673ec9857e616759892b66a2ed6d8b3 (diff) |
GPencil: Fix compiler warning
The variable can never be NULL and the comparison was wrong.
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/gpencil/intern/gpencil_io_import_base.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_import_base.cc b/source/blender/io/gpencil/intern/gpencil_io_import_base.cc index 18cbbceda0b..6d4439243fd 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_import_base.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_import_base.cc @@ -35,7 +35,7 @@ Object *GpencilImporter::create_object() Object *ob_gpencil = ED_object_add_type(params_.C, OB_GPENCIL, - (params_.filename != nullptr) ? params_.filename : + (params_.filename[0] != '\0') ? params_.filename : nullptr, cur_loc, rot, |