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 committed by Philipp Oeser
parent be38344de0
commit f07f55582a
Notes: blender-bot 2023-02-13 13:22:24 +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,