GPencil: Fix compiler warning
The variable can never be NULL and the comparison was wrong.
This commit is contained in:
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
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue