GPencil: Fix compiler warning

The variable can never be NULL and the comparison was wrong.
This commit is contained in:
Antonio Vazquez 2022-08-02 17:03:25 +02:00
parent dadfdc8226
commit 09ac5f97a7
Notes: blender-bot 2023-02-14 02:43:21 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 1 additions and 1 deletions

View File

@ -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,